public void WhenCreated_SpawnedRewardPM_IsUncovered() { ISingleRewardPM mockRewardPM = Substitute.For <ISingleRewardPM>(); MockRewardPMSpawner.Create(Arg.Any <IDungeonReward>(), Arg.Any <IAllRewardsPM>()).Returns(mockRewardPM); SingleLoginPromoRewardPM systemUnderTest = CreateSystem(0); mockRewardPM.Received().UncoverReward(); }
public void WhenCreated_RewardPM_IsCreatedWithSpawnedDungeonReward() { IDungeonReward mockDungeonReward = Substitute.For <IDungeonReward>(); MockDungeonRewardSpawner.Create(Arg.Any <IGameRewardData>()).Returns(mockDungeonReward); SingleLoginPromoRewardPM systemUnderTest = CreateSystem(0); MockRewardPMSpawner.Received().Create(mockDungeonReward, null); }
private SingleLoginPromoRewardPM CreateSystem(int i_rewardNumber) { SingleLoginPromoRewardPM systemUnderTest = new SingleLoginPromoRewardPM(MockDungeonRewardSpawner, MockRewardPMSpawner, i_rewardNumber, MockRewardData); return(systemUnderTest); }
public void WhenCreated_DungeonRewardIsCreatedWithRewardData() { SingleLoginPromoRewardPM systemUnderTest = CreateSystem(0); MockDungeonRewardSpawner.Received().Create(MockRewardData); }
public void WhenCreated_RewardNumberProperty_MatchesIncomingNumber() { SingleLoginPromoRewardPM systemUnderTest = CreateSystem(4); Assert.AreEqual("4", systemUnderTest.ViewModel.GetPropertyValue <string>(SingleLoginPromoRewardPM.REWARD_NUMBER_PROPERTY)); }