public void HandlesCollectionAddCorrectly()
            {
                var table      = new List <string>();
                var tableAfter = new List <string>(new[] { "currentValue" });

                var collectionChangeUndo = new CollectionChangeUndo(table, CollectionChangeType.Add, 0, 1, null, "currentValue");

                collectionChangeUndo.Redo();

                Assert.IsTrue(CollectionHelper.IsEqualTo(table, tableAfter));
            }
            public void SetsValuesCorrectly()
            {
                var table = new List <object>();
                var collectionChangeUndo = new CollectionChangeUndo(table, CollectionChangeType.Add, 0, 0, "currentValue", "nextValue");

                Assert.IsNotNull(collectionChangeUndo.Collection);
                Assert.AreEqual(CollectionChangeType.Add, collectionChangeUndo.ChangeType);
                Assert.AreEqual(table, collectionChangeUndo.Collection);
                Assert.AreEqual("currentValue", collectionChangeUndo.OldValue);
                Assert.AreEqual("nextValue", collectionChangeUndo.NewValue);
                Assert.AreEqual(true, collectionChangeUndo.CanRedo);
            }