コード例 #1
0
ファイル: Tests.cs プロジェクト: dnewcome/dormitory
        public void TestTable()
        {
            DbConfig config = new DbConfig();
            List<Field> fields = new List<Field>(){ new Field( "col1", typeof(string) ) };
            TableDriver.Table.CreateTable( "testtable", fields, config );
            Fest.AssertTrue( TableDriver.Table.Exists( "test", "testtable", config ), "Table does not exist" );

            TableDriver.Table.Drop( "test", "testtable", config );
            Fest.AssertFalse( TableDriver.Table.Exists( "test", "testtable", config ), "Table exists" );
        }
コード例 #2
0
ファイル: Tests.cs プロジェクト: dnewcome/dormitory
 public void TestSchema()
 {
     DbConfig config = new DbConfig();
     TableDriver.Schema.Create( "test", config );
     Fest.AssertTrue( TableDriver.Schema.Exists( "test", config ), "Schema does not exist" );
 }