Exemplo n.º 1
0
        public void WhenUncovered_AllRewardsPM_IsNotified()
        {
            SingleRewardPM systemUnderTest = systemFactory.Create(Substitute.For <IDungeonReward>(), MockRewardsPM);

            systemUnderTest.UncoverReward();

            MockRewardsPM.Received().RewardUncovered();
        }
Exemplo n.º 2
0
        public void WhenUncovered_CoverVisibility_IsFalse()
        {
            SingleRewardPM systemUnderTest = systemFactory.Create(Substitute.For <IDungeonReward>(), MockRewardsPM);

            systemUnderTest.ViewModel.SetProperty(SingleRewardPM.COVER_VISIBLE_PROPERTY, true);

            systemUnderTest.UncoverReward();

            Assert.IsFalse(systemUnderTest.ViewModel.GetPropertyValue <bool>(SingleRewardPM.COVER_VISIBLE_PROPERTY));
        }