Skip to content

Commit 3bda882

Browse files
author
Marc Sallin
committed
#23: Added test for TableNameCreator.
1 parent c6a1deb commit 3bda882

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Microsoft.VisualStudio.TestTools.UnitTesting;
2+
using SQLite.CodeFirst.Builder.NameCreators;
3+
4+
namespace SQLite.CodeFirst.Test.Builder.NameCreators
5+
{
6+
[TestClass]
7+
public class TableNameCreatorTest
8+
{
9+
[TestMethod]
10+
public void CreateTableNameTest()
11+
{
12+
string result = TableNameCreator.CreateTableName("Test");
13+
Assert.AreEqual("\"Test\"", result);
14+
}
15+
}
16+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
<Compile Include="..\Shared\AssemblySharedInfo.cs">
7777
<Link>Properties\AssemblySharedInfo.cs</Link>
7878
</Compile>
79+
<Compile Include="Builder\NameCreators\TableNameCreatorTest.cs" />
7980
<Compile Include="Properties\AssemblyInfo.cs" />
8081
<Compile Include="Statement\ColumnConstraint\MaxLengthConstraint.cs" />
8182
<Compile Include="Statement\ColumnConstraint\ColumnConstraintCollectionTest.cs" />
@@ -92,7 +93,6 @@
9293
<Compile Include="Statement\ColumnStatementTest.cs" />
9394
</ItemGroup>
9495
<ItemGroup>
95-
<Folder Include="Builder\" />
9696
<Folder Include="Convention\" />
9797
<Folder Include="Extensions\" />
9898
</ItemGroup>

0 commit comments

Comments
 (0)