コード例 #1
0
        public void WhenPieceAnimation_IsComplete_PieceState_IsSelectable()
        {
            GamePiecePM systemUnderTest = CreateSystem();

            systemUnderTest.ViewModel.SetProperty(GamePiecePM.IS_ON_PROPERTY, Color.yellow);

            systemUnderTest.OnAnimationComplete();

            MockPiece.Received().State = GamePieceStates.Selectable;
        }
コード例 #2
0
        public void WhenPieceAnimation_IsComplete_IsOnProperty_IsFalse()
        {
            GamePiecePM systemUnderTest = CreateSystem();

            systemUnderTest.ViewModel.SetProperty(GamePiecePM.IS_ON_PROPERTY, Color.yellow);

            systemUnderTest.OnAnimationComplete();

            Assert.IsFalse(systemUnderTest.ViewModel.GetPropertyValue <bool>(GamePiecePM.IS_ON_PROPERTY));
        }