예제 #1
0
파일: TradeStateTest.cs 프로젝트: Corne/VOC
        public void ExpectNothingToHappenIfCommandNotNextState(GameCommand command)
        {
            var turn = new Mock<IGameTurn>();
            var state = new TradeState(turn.Object);

            state.AfterExecute(command);

            turn.Verify(t => t.NextFlowState(), Times.Never);
            Assert.False(state.Completed);
        }
예제 #2
0
파일: TradeStateTest.cs 프로젝트: Corne/VOC
        public void ExpectNextFlowStateIfNExtStateCommnad()
        {
            var turn = new Mock<IGameTurn>();
            var state = new TradeState(turn.Object);

            state.AfterExecute(GameCommand.NextState);

            Assert.True(state.Completed);
            turn.Verify(t => t.NextFlowState());
        }