예제 #1
0
 public void AddColumnSameObjectTest()
 {
     var idx = new Index("IDX_TEST", "testTable");
     var idx2 = idx.AddColumn(new IndexColumn("testcol"));
     Assert.AreSame(idx, idx2);
 }
예제 #2
0
 public void AddColumnTest()
 {
     var idx = new Index("IDX_TEST", "testTable");
     idx.AddColumn(new IndexColumn("Test"));
     Assert.AreEqual(1, idx.Columns.Count);
 }
예제 #3
0
 public void AddColumnDublicateTest()
 {
     var idx = new Index("IDX_TEST", "testTable");
     idx.AddColumn(new IndexColumn("Test"));
     Assert.Throws<DublicateColumnException>(() => idx.AddColumn(new IndexColumn("Test")));
 }