Exemple #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();
     }
 }
Exemple #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();
     }
 }
Exemple #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();
     }
 }
Exemple #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();
     }
 }
Exemple #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();
     }
 }
Exemple #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();
     }
 }
Exemple #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();
     }
 }
Exemple #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();
     }
 }
Exemple #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();
     }
 }
Exemple #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();
     }
 }