Skip to content

Commit abef7a2

Browse files
committed
Test for NotNullConstraint.
1 parent 1270774 commit abef7a2

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

SQLite.CodeFirst.Test/SQLite.CodeFirst.Test.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
<ItemGroup>
6868
<Compile Include="Properties\AssemblyInfo.cs" />
6969
<Compile Include="Statement\ColumnConstraint\MaxLengthConstraint.cs" />
70+
<Compile Include="Statement\ColumnConstraint\NotNullConstraintTest.cs" />
7071
<Compile Include="Statement\ColumnStatementCollectionTest.cs" />
7172
<Compile Include="Statement\PrimaryKeyStatementTest.cs" />
7273
<Compile Include="Statement\CreateDatabaseStatementTest.cs" />
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Microsoft.VisualStudio.TestTools.UnitTesting;
2+
using SQLite.CodeFirst.Statement.ColumnConstraint;
3+
4+
namespace SQLite.CodeFirst.Test.Statement.ColumnConstraint
5+
{
6+
[TestClass]
7+
public class NotNullConstraintTest : StatementTestBase
8+
{
9+
[TestMethod]
10+
public void CreateStatementTest()
11+
{
12+
var notNullConstraint = new NotNullConstraint();
13+
string output = notNullConstraint.CreateStatement();
14+
Assert.AreEqual(output, "NOT NULL");
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)