public void ExpectNothingToHappenIfCommandNotNextState(GameCommand command) { var turn = new Mock<IGameTurn>(); var state = new BuildState(turn.Object); state.AfterExecute(command); turn.Verify(t => t.NextFlowState(), Times.Never); Assert.False(state.Completed); }
public void ExpectNextFlowStateAfterNextStateCommand() { var turn = new Mock<IGameTurn>(); var state = new BuildState(turn.Object); state.AfterExecute(GameCommand.NextState); turn.Verify(t => t.NextFlowState()); Assert.True(state.Completed); }