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