public void WhenShowingOpenReward_RewardPM_IsSet_AndUncovered() { IDungeonReward mockReward = Substitute.For <IDungeonReward>(); ISingleRewardPM mockRewardPM = Substitute.For <ISingleRewardPM>(); TimedChestPM systemUnderTest = CreateSystem(); systemUnderTest.RewardPM = mockRewardPM; systemUnderTest.ShowOpenReward(mockReward); mockRewardPM.Received().SetReward(mockReward); mockRewardPM.Received().UncoverReward(); }
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(); }