// ReSharper disable InconsistentNaming public void Undo_Expected_Positive() // ReSharper restore InconsistentNaming { ActionManager actManager = new ActionManager(); actManager.RecordAction(_mockAction.Object); actManager.Undo(); Assert.IsTrue(actManager.CanRedo); }
public void Two_Actions_One_Undo_Expected_CanUndo_true() { ActionManager actManager = new ActionManager(); actManager.RecordAction(_mockAction.Object); actManager.RecordAction(_mockAction.Object); actManager.Undo(); Assert.IsTrue(actManager.CanUndo && actManager.CanRedo); }