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

            systemUnderTest.UncoverReward();

            MockRewardsPM.Received().RewardUncovered();
        }
        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));
        }
        public void WhenCreating_WithReward_PropertiesAsExpected()
        {
            IDungeonReward mockReward = GetMockReward(101, "Test");

            MockStringTable.Get("Test").Returns("MyTestItem");

            SingleRewardPM systemUnderTest = systemFactory.Create(mockReward, MockRewardsPM);

            Assert.AreEqual("101", systemUnderTest.ViewModel.GetPropertyValue <string>(SingleRewardPM.COUNT_PROPERTY));
            Assert.AreEqual("MyTestItem", systemUnderTest.ViewModel.GetPropertyValue <string>(SingleRewardPM.NAME_PROPERTY));
        }
 public void WhenCreating_WithNullParams_NoErrors()
 {
     SingleRewardPM systemUnderTest = systemFactory.Create(null, null);
 }
        public void WhenCreating_CoverIsVisibleByDefault()
        {
            SingleRewardPM systemUnderTest = systemFactory.Create(Substitute.For <IDungeonReward>(), MockRewardsPM);

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