public override void CallingIndexExistsReturnsFalseIfIndexDoesNotExistWithSchema() { using (var table = new OracleTestTable(Connection, SchemaName, Quoter.QuoteColumnName("id") + " int")) { table.WithIndexOn("id"); Processor.IndexExists(SchemaName, table.Name, "DoesNotExist").ShouldBeFalse(); } }
public override void CallingIndexExistsReturnsTrueIfIndexExists() { using (var table = new OracleTestTable(Connection, null, Quoter.QuoteColumnName("id") + " int")) { table.WithIndexOn("id"); Processor.IndexExists(null, table.Name, "UI_id").ShouldBeTrue(); } }
public override void CallingIndexExistsReturnsTrueIfIndexExists() { using (var table = new OracleTestTable(Processor, null, "id int")) { table.WithIndexOn("ID"); Processor.IndexExists(null, table.Name, "UI_id").ShouldBeTrue(); } }
public override void CallingIndexExistsCanAcceptTableNameWithSingleQuote() { using (var table = new OracleTestTable("Test'Table", Connection, null, Quoter.QuoteColumnName("id") + " int")) { table.WithIndexOn("id"); Processor.IndexExists(null, table.Name, "UI_id").ShouldBeTrue(); } }
public override void CallingIndexExistsCanAcceptTableNameWithSingleQuote() { using (var table = new OracleTestTable("Test'Table", Processor, null, "id int")) { table.WithIndexOn("ID"); Processor.IndexExists(null, table.Name, "UI_id").ShouldBeTrue(); } }
public override void CallingIndexExistsReturnsFalseIfIndexDoesNotExistWithSchema() { using (var table = new OracleTestTable(Processor, SchemaName, "id int")) { table.WithIndexOn("ID"); Processor.IndexExists(SchemaName, table.Name, "DoesNotExist").ShouldBeFalse(); } }
public void CallingIndexExistsWithIncorrectCaseReturnsFalseIfIndexExist() { using (var table = new OracleTestTable(Connection, Quoter, null, Quoter.QuoteColumnName("id") + " int")) { table.WithIndexOn("id"); Processor.IndexExists(null, table.Name, "UI_ID").ShouldBeFalse(); } }
public override void CallingIndexExistsReturnsFalseIfIndexDoesNotExist() { using (var table = new OracleTestTable(this.Connection, null, this.Factory, "id int")) { table.WithIndexOn("ID"); this.Processor.IndexExists(null, table.Name, "DoesNotExist").ShouldBeFalse(); } }
public override void CallingIndexExistsCanAcceptIndexNameWithSingleQuote() { using (var table = new OracleTestTable(this.Connection, null, this.Factory, "id int")) { table.WithIndexOn("ID", "UI'id"); this.Processor.IndexExists(null, table.Name, "UI'id").ShouldBeTrue(); } }
public override void CallingIndexExistsReturnsTrueIfIndexExistsWithSchema() { using (var table = new OracleTestTable(this.Connection, SchemaName, this.Factory, "id int")) { table.WithIndexOn("ID"); this.Processor.IndexExists(SchemaName, table.Name, "UI_id").ShouldBeTrue(); } }
public void CallingIndexExistsWithIncorrectCaseReturnsFalseIfIndexExist() { //the IndexExists() function is'nt case sensitive using (var table = new OracleTestTable(Processor, null, "id int")) { table.WithIndexOn("ID", "ui_id"); this.Processor.IndexExists(null, table.Name, "Ui_Id").ShouldBeTrue(); } }