コード例 #1
0
ファイル: TestMisc.cs プロジェクト: radtek/ACopy
        //TestMethod
        protected void TestWriteRead_When_UseCompression_And_EmptyTable()
        {
            CreateTable();
            WriteCompressedEmptyTable();
            DbSchema.DropTable(TestTable);
            Read();

            DbSchema.IsTable(TestTable).Should().BeTrue("because table was recreated");
        }
コード例 #2
0
ファイル: TestReader.cs プロジェクト: radtek/ACopy
        //TestMethod
        protected void TestReader_When_SimpleTable()
        {
            CreateTestFiles();
            Read();

            DbSchema.IsTable(TestTable).Should().BeTrue();
            var val = Commands.ExecuteScalar(string.Format("select val from {0}", TestTable));

            val.Should().Be("Line 1");
        }
コード例 #3
0
 protected void CreateTableWithAllColumns(bool addDeprecatedTypes)
 {
     if (!DbSchema.IsTable(TableName))
     {
         TestTableCreator.CreateTestTableWithAllTypes(DbContext, TableName, addDeprecatedTypes);
     }
 }
コード例 #4
0
ファイル: TestDatabase.cs プロジェクト: radtek/ACopy
 private void TestIsTable_When_TableExists(IDbContext dbContext)
 {
     Initialize(dbContext);
     TestTableCreator.CreateTableSomeColumnsAndOneRow(dbContext, _testTable);
     _dbSchema.IsTable(_testTable).Should().BeTrue($"because {_testTable} should exist");
 }