File tree Expand file tree Collapse file tree 4 files changed +29
-1
lines changed
Expand file tree Collapse file tree 4 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 7070 <Compile Include =" Statement\CreateDatabaseStatementTest.cs" />
7171 <Compile Include =" Statement\StatementTestBase.cs" />
7272 <Compile Include =" Statement\ForeignKeyStatementTest.cs" />
73+ <Compile Include =" Statement\CreateTableStatementTest.cs" />
7374 </ItemGroup >
7475 <ItemGroup >
7576 <Folder Include =" Builder\" />
Original file line number Diff line number Diff line change 1+ using Microsoft . VisualStudio . TestTools . UnitTesting ;
2+ using Moq ;
3+ using SQLite . CodeFirst . Statement ;
4+
5+ namespace SQLite . CodeFirst . Test . Statement
6+ {
7+ [ TestClass ]
8+ public class CreateTableStatementTest : StatementTestBase
9+ {
10+ [ TestMethod ]
11+ public void CreateStatementTest ( )
12+ {
13+ var statementCollectionMock = new Mock < IStatementCollection > ( ) ;
14+ statementCollectionMock . Setup ( s => s . CreateStatement ( ) ) . Returns ( "dummyColumnDefinition" ) ;
15+
16+ var createTableStatement = new CreateTableStatement
17+ {
18+ TableName = "dummyTable" ,
19+ ColumnStatementCollection = statementCollectionMock . Object
20+ } ;
21+
22+ string output = createTableStatement . CreateStatement ( ) ;
23+ Assert . AreEqual ( output , "CREATE TABLE dummyTable (dummyColumnDefinition);" ) ;
24+ }
25+ }
26+ }
Original file line number Diff line number Diff line change 1212[ assembly: AssemblyCompany ( "Marc Sallin" ) ]
1313
1414[ assembly: InternalsVisibleTo ( "SQLite.CodeFirst.Test" , AllInternalsVisible = true ) ]
15+ [ assembly: InternalsVisibleTo ( "DynamicProxyGenAssembly2" ) ]
1516
1617// Setting ComVisible to false makes the types in this assembly not visible
1718// to COM components. If you need to access a type in this assembly from
Original file line number Diff line number Diff line change 22
33namespace SQLite . CodeFirst . Statement
44{
5- interface IStatementCollection : IStatement , ICollection < IStatement >
5+ internal interface IStatementCollection : IStatement , ICollection < IStatement >
66 {
77 }
88}
You can’t perform that action at this time.
0 commit comments