コード例 #1
0
        public void CloseShouldNotChangeGameState()
        {
            // It is not allowed to close the game in this state
            var haveStateMock = new Mock <IStateManager>();
            var roundState    = new StartRoundState(haveStateMock.Object);

            roundState.Close();
            haveStateMock.Verify(x => x.SetState(It.IsAny <BaseRoundState>()), Times.Never);
        }