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