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; }
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)); }