예제 #1
0
        public void CanEnterProperty_IsFalse_WhenKeyCount_IsZero()
        {
            CreateMockKeyWithCountForIndex(0, 1);
            EnterGauntletPM systemUnderTest = CreateSystem();

            systemUnderTest.SetIndex(1);

            bool canEnter = systemUnderTest.ViewModel.GetPropertyValue <bool>(EnterGauntletPM.CAN_ENTER_GAUNTLET_PROPERTY);

            Assert.IsFalse(canEnter);
        }
예제 #2
0
        public void WhenSettingIndex_KeyCountIsExpected()
        {
            IMyItemInstance mockKey         = CreateMockKeyWithCountForIndex(3, 1);
            EnterGauntletPM systemUnderTest = CreateSystem();

            systemUnderTest.SetIndex(1);

            int keyCount = systemUnderTest.ViewModel.GetPropertyValue <int>(EnterGauntletPM.KEY_COUNT_PROPERTY);

            Assert.AreEqual(3, keyCount);
        }