public override void CallingColumnExistsReturnsFalseIfColumnDoesNotExist() { using (var table = new SqlServerCeTestTable(Processor, QuoterOptions, "id int")) { Processor.ColumnExists(null, table.Name, "DoesNotExist").ShouldBeFalse(); } }
public override void CallingColumnExistsReturnsFalseIfColumnDoesNotExistWithSchema() { using (var table = new SqlServerCeTestTable(Processor, "id int")) { Processor.ColumnExists("NOTUSED", table.Name, "DoesNotExist").ShouldBeFalse(); } }
public override void CallingColumnExistsReturnsTrueIfColumnExistsWithSchema() { using (var table = new SqlServerCeTestTable(Processor, Quoter.QuoteColumnName("id") + " int")) { Processor.ColumnExists("NOTUSED", table.Name, "id").ShouldBeTrue(); } }
public override void CallingColumnExistsCanAcceptTableNameWithSingleQuote() { using (var table = new SqlServerCeTestTable("Test'Table", Processor, Quoter.QuoteColumnName("id") + " int")) { Processor.ColumnExists("NOTUSED", table.Name, "id").ShouldBeTrue(); } }
public override void CallingColumnExistsReturnsTrueIfColumnExists() { using (var table = new SqlServerCeTestTable(Processor, QuoterOptions, Quoter.QuoteColumnName("id") + " int")) { Processor.ColumnExists(null, table.Name, "id").ShouldBeTrue(); } }
public override void CallingIndexExistsReturnsFalseIfIndexDoesNotExistWithSchema() { using (var table = new SqlServerCeTestTable(Processor, "id int")) { table.WithIndexOn("id"); Processor.IndexExists("NOTUSED", table.Name, "DoesNotExist").ShouldBeFalse(); } }
public override void CallingIndexExistsCanAcceptTableNameWithSingleQuote() { using (var table = new SqlServerCeTestTable("Test'Table", Processor, "id int")) { table.WithIndexOn("id"); Processor.IndexExists("NOTUSED", table.Name, "UI_id").ShouldBeTrue(); } }
public override void CallingIndexExistsReturnsTrueIfIndexExists() { using (var table = new SqlServerCeTestTable(Processor, "id int")) { table.WithIndexOn("id"); Processor.IndexExists(null, table.Name, "UI_id").ShouldBeTrue(); } }
public override void CallingConstraintExistsCanAcceptConstraintNameWithSingleQuote() { using (var table = new SqlServerCeTestTable(Processor, "id int")) { table.WithUniqueConstraintOn("id", "UC'id"); Processor.ConstraintExists("NOTUSED", table.Name, "UC'id").ShouldBeTrue(); } }
public override void CallingConstraintExistsReturnsTrueIfConstraintExistsWithSchema() { using (var table = new SqlServerCeTestTable(Processor, "id int")) { table.WithUniqueConstraintOn("id"); Processor.ConstraintExists("NOTUSED", table.Name, "UC_id").ShouldBeTrue(); } }
public override void CallingConstraintExistsReturnsFalseIfConstraintDoesNotExistWithSchema() { using (var table = new SqlServerCeTestTable(Processor, "id int")) { table.WithUniqueConstraintOn("id"); Processor.ConstraintExists("NotUsed", table.Name, "DoesNotExist").ShouldBeFalse(); } }
public override void CallingConstraintExistsReturnsTrueIfConstraintExists() { using (var table = new SqlServerCeTestTable(Processor, QuoterOptions, "id int")) { table.WithUniqueConstraintOn("id"); Processor.ConstraintExists(null, table.Name, "UC_id").ShouldBeTrue(); } }
public void CallingIndexExistsReturnsTrueIfIndexExistWithSchema() { using (var table = new SqlServerCeTestTable(Processor, "id int")) { table.WithIndexOn("id"); Processor.IndexExists("NOTUSED", table.Name, "UI_id").ShouldBeTrue(); } }
public void CallingIndexExistsReturnsFalseIfIndexDoesNotExist() { using (var table = new SqlServerCeTestTable(Processor, "id int")) { table.WithIndexOn("id"); Processor.IndexExists(null, table.Name, "DoesNotExist").ShouldBeFalse(); } }
public void CallingColumnExistsReturnsTrueIfColumnExists() { using (var table = new SqlServerCeTestTable(Processor, "\"id\" int")) Processor.ColumnExists(null, table.Name, "id").ShouldBeTrue(); }
public override void CallingTableExistsCanAcceptTableNameWithSingleQuote() { using (var table = new SqlServerCeTestTable("Test'Table", Processor, QuoterOptions, "id int")) Processor.TableExists("NOTUSED", table.Name).ShouldBeTrue(); }
public override void CallingTableExistsReturnsTrueIfTableExistsWithSchema() { using (var table = new SqlServerCeTestTable(Processor, QuoterOptions, "id int")) Processor.TableExists("NOTUSED", table.Name).ShouldBeTrue(); }
public override void CallingTableExistsReturnsTrueIfTableExists() { using (var table = new SqlServerCeTestTable(Processor, "id int")) Processor.TableExists(null, table.Name).ShouldBeTrue(); }