Beispiel #1
0
        public void AddRemoveColumnsTest()
        {
            var column = new StorageColumnInfo(table, "c");

            Assert.AreEqual(1, table.Columns.Count);
            column.Remove();
            Assert.AreEqual(0, table.Columns.Count);
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 public void RemoveReferencedColumnTest()
 {
     column5.Remove();
     AssertEx.Throws <AggregateException>(storage.Validate);
 }