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 CallingConstraintExistsCanAcceptTableNameWithSingleQuote() { using (var table = new SqlServerCeTestTable("Test'Table", Processor, "id int")) { table.WithUniqueConstraintOn("id"); Processor.ConstraintExists("NOTUSED", table.Name, "UC_id").ShouldBeTrue(); } }
public void CallingConstraintExistsReturnsTrueIfConstraintExistWithSchema() { using (var table = new SqlServerCeTestTable(Processor, "id int")) { table.WithUniqueConstraintOn("id"); Processor.ConstraintExists("NOTUSED", table.Name, "UC_id").ShouldBeTrue(); } }