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)); }
public void WhenLoadingDungeon_LoaderIsCalledWithExpectedSettings() { EnterDungeonPM systemUnderTest = CreateSystem(); systemUnderTest.GameType = "Test"; systemUnderTest.AreaId = 1; systemUnderTest.DungeonId = 2; systemUnderTest.LoadDungeon(); MockDungeonLoader.Received().LoadDungeon("Test", 1, 2); }