示例#1
0
 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();
     }
 }
示例#2
0
 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();
     }
 }
示例#3
0
 public override void CallingIndexExistsReturnsTrueIfIndexExists()
 {
     using (var table = new OracleTestTable(Processor, null, "id int"))
     {
         table.WithIndexOn("ID");
         Processor.IndexExists(null, table.Name, "UI_id").ShouldBeTrue();
     }
 }
示例#4
0
 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();
     }
 }
示例#5
0
 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();
     }
 }
示例#6
0
 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();
     }
 }
示例#8
0
 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();
     }
 }
示例#9
0
 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();
     }
 }
示例#10
0
 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();
     }
 }
示例#11
0
 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();
     }
 }