Esempio n. 1
0
        public void CountPropertyMatchesProgressCount()
        {
            int expectedCount = 111;
            IRepeatableQuestProgress progress = Substitute.For <IRepeatableQuestProgress>();

            progress.GetCompletedCount().Returns(expectedCount);
            progress.GetMissionData().Returns(GetMockMission());
            RepeatableQuestModel model = new RepeatableQuestModel(progress, Substitute.For <IAdManager>());

            Assert.AreEqual(expectedCount, model.ViewModel.GetPropertyValue <int>(RepeatableQuestModel.CURRENT_COMPLETED_COUNT_PROPERTY));
        }
Esempio n. 2
0
 private void SetCompletedCountProperties()
 {
     ViewModel.SetProperty(CURRENT_COMPLETED_COUNT_PROPERTY, mProgress.GetCompletedCount());
     ViewModel.SetProperty(MAX_COMPLETED_COUNT_PROPERTY, Constants.GetConstant <int>(ConstantKeys.MAX_REPEATABLE_QUESTS));
 }