Ejemplo n.º 1
0
        public void WhenLoadingDungeon_SystemIsHidden()
        {
            EnterDungeonPM systemUnderTest = CreateSystem();

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

            systemUnderTest.LoadDungeon();

            Assert.IsFalse(systemUnderTest.ViewModel.GetPropertyValue <bool>(EnterDungeonPM.VISIBLE_PROPERTY));
        }
Ejemplo n.º 2
0
        public void WhenLoadingDungeon_LoaderIsCalledWithExpectedSettings()
        {
            EnterDungeonPM systemUnderTest = CreateSystem();

            systemUnderTest.GameType  = "Test";
            systemUnderTest.AreaId    = 1;
            systemUnderTest.DungeonId = 2;

            systemUnderTest.LoadDungeon();

            MockDungeonLoader.Received().LoadDungeon("Test", 1, 2);
        }