public void ExpectNothingToHappenIfCommandNotMonopoly(GameCommand command) { var turn = new Mock<IGameTurn>(); var state = new MonopolyState(turn.Object); state.AfterExecute(command); turn.Verify(t => t.NextFlowState(), Times.Never); }
public void ExpectNextFlowStateAfterMonoplyExecuted() { var turn = new Mock<IGameTurn>(); var state = new MonopolyState(turn.Object); state.AfterExecute(GameCommand.Monopoly); turn.Verify(t => t.NextFlowState(), Times.Once); }