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); }
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); }