public void AddRemoveColumnsTest() { var column = new StorageColumnInfo(table, "c"); Assert.AreEqual(1, table.Columns.Count); column.Remove(); Assert.AreEqual(0, table.Columns.Count); }
public void AddRemoveKeyColumnRefs() { var column = new StorageColumnInfo(table, "col1"); var colRef = new KeyColumnRef(index, column, Direction.Positive); Assert.AreEqual(1, index.KeyColumns.Count); colRef.Remove(); Assert.AreEqual(0, index.KeyColumns.Count); column.Remove(); }
public void RemoveReferencedColumnTest() { column5.Remove(); AssertEx.Throws <AggregateException>(storage.Validate); }