public void TestPath_SyncChangeCommands() { var changeCommand = new ChangeCommandStub(); season.AddChangeCommand(changeCommand); season.SyncChangeCommands(); Assert.AreEqual(1, changeCommand.executeWasCalled); }
public void TestPolymorphism_AddChangeCommand() { ChangeCommandStub commandStub = new ChangeCommandStub(); season.AddChangeCommand((IChangeCommand)commandStub); season.SyncChangeCommands(); Assert.AreEqual(1, commandStub.executeWasCalled); }
public void TestPath_UndoAllChangeCommands2() { var changeCommand1 = new ChangeCommandStub(); var changeCommand2 = new ChangeCommandStub(); season.AddChangeCommand(changeCommand1); season.AddChangeCommand(changeCommand2); season.UndoLastChangeCommand(); Assert.AreEqual(0, changeCommand1.undoWasCalled); Assert.AreEqual(1, changeCommand2.undoWasCalled); }
public void BoundaryTest_AddChangeCommand() { var commandStub = new ChangeCommandStub(); season.AddChangeCommand(commandStub); season.AddChangeCommand(commandStub); }
public void TestBoundary_AddChangeCommand() { ChangeCommandStub commandStub = new ChangeCommandStub(); season.AddChangeCommand((IChangeCommand)commandStub); season.AddChangeCommand(commandStub); }