Esempio n. 1
0
        public void Removed()
        {
            IIndex index = GetIndex();
            IMergeOperation <IIndex> op = new IndexRemovalOperation(index);

            Assert.That(op.ToString(), Is.EqualTo("DB1.Table2.Index1 Removed"));
        }
Esempio n. 2
0
            public void The_Original_Database_Should_Not_Contain_The_Removed_Index()
            {
                var db1 = TestDatabaseLoader.TestDatabase();

                IndexRemovalOperation op = new IndexRemovalOperation(db1.Tables[0].Indexes[0]);

                op.RunOperation();

                Assert.That(db1.Tables[0].Indexes, Is.Empty);
            }
Esempio n. 3
0
            public void The_Index_Is_Marked_As_User_Defined()
            {
                var db1 = TestDatabaseLoader.TestDatabase();

                IndexRemovalOperation op = new IndexRemovalOperation(db1.Tables[0].Indexes[0]);

                op.NotApplied();

                Assert.That(db1.Tables[0].Indexes, Has.Count(1));
                Assert.That(db1.Tables[0].Indexes[0].IsUserDefined, Is.True);
            }
        public void Removed()
        {
            IIndex index = GetIndex();
            IMergeOperation<IIndex> op = new IndexRemovalOperation(index);

            Assert.That(op.ToString(), Is.EqualTo("DB1.Table2.Index1 Removed"));
        }
            public void The_Index_Is_Marked_As_User_Defined()
            {
                var db1 = TestDatabaseLoader.TestDatabase();

                IndexRemovalOperation op = new IndexRemovalOperation(db1.Tables[0].Indexes[0]);
                op.NotApplied();

                Assert.That(db1.Tables[0].Indexes, Has.Count(1));
                Assert.That(db1.Tables[0].Indexes[0].IsUserDefined, Is.True);
            }
            public void The_Original_Database_Should_Not_Contain_The_Removed_Index()
            {
                var db1 = TestDatabaseLoader.TestDatabase();

                IndexRemovalOperation op = new IndexRemovalOperation(db1.Tables[0].Indexes[0]);
                op.RunOperation();

                Assert.That(db1.Tables[0].Indexes, Is.Empty);
            }