public void ExpectNothingToHappenIfCommandNotYearofPlenty(GameCommand command) { var turn = new Mock<IGameTurn>(); var state = new YearOfPlentyState(turn.Object); state.AfterExecute(command); turn.Verify(t => t.NextFlowState(), Times.Never); }
public void ExpectNextFlowStateAfterYearOfPlentyExecuted() { var turn = new Mock<IGameTurn>(); var state = new YearOfPlentyState(turn.Object); state.AfterExecute(GameCommand.YearOfPlenty); turn.Verify(t => t.NextFlowState(), Times.Once); }