Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }