public void UndoWorksAfterAdding() { _actionSource.Add(3); _actionSource.Undo(); // These two lines are equivalent, in this case, because the "Is.EqualTo()" // is only looking at the contents of the collections, not the type of the // collections. Assert.That(_actionSource.Actions, Is.EqualTo(new List <int>())); Assert.That(_actionSource.Actions, Is.EqualTo(new int[] { })); }
public void CanRedoWithPriorUndo() { _actionSource.Add(4); _actionSource.Undo(); Assert.That(_actionSource.CanRedo, Is.True); }