Ejemplo n.º 1
0
        public void WhenEnteringGauntlet_CurrentIndexSetOnManager()
        {
            EnterGauntletPM systemUnderTest = CreateSystem();

            systemUnderTest.Index = 11;

            systemUnderTest.EnterGauntlet(0);

            MockGauntletManager.Received().CurrentGauntletIndex = 11;
        }
Ejemplo n.º 2
0
        public void WhenEnteringGauntlet_SystemHidesItself()
        {
            EnterGauntletPM systemUnderTest = CreateSystem();

            systemUnderTest.ViewModel.SetProperty(EnterGauntletPM.VISIBLE_PROPERTY, true);

            systemUnderTest.EnterGauntlet(0);

            Assert.IsFalse(systemUnderTest.ViewModel.GetPropertyValue <bool>(EnterGauntletPM.VISIBLE_PROPERTY));
        }
Ejemplo n.º 3
0
        public void WhenEnteringGauntlet_KeyIsConsumedFromInventory()
        {
            EnterGauntletPM systemUnderTest = CreateSystem();

            systemUnderTest.Index = 0;

            systemUnderTest.EnterGauntlet(0);

            MockInventory.Received().ConsumeGauntletKeyForIndex(0);
        }
Ejemplo n.º 4
0
        public void WhenEnteringGauntlet_DungeonLoaderLoadsWithExpectedValues()
        {
            EnterGauntletPM systemUnderTest = CreateSystem();

            systemUnderTest.Index = 0;

            systemUnderTest.EnterGauntlet(2);

            MockDungeonLoader.Received().LoadDungeon(EnterGauntletPM.GAUNTLET_GAME_TYPE, 0, 2);
        }