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 WhenSettingRequestedDungeon_AllPropertiesAreSet() { EnterDungeonPM systemUnderTest = CreateSystem(); systemUnderTest.SetRequestedDungeon("TestType", 11, 100); Assert.AreEqual("TestType", systemUnderTest.GameType); Assert.AreEqual(11, systemUnderTest.AreaId); Assert.AreEqual(100, systemUnderTest.DungeonId); }
public void WhenLoadingDungeon_LoaderIsCalledWithExpectedSettings() { EnterDungeonPM systemUnderTest = CreateSystem(); systemUnderTest.GameType = "Test"; systemUnderTest.AreaId = 1; systemUnderTest.DungeonId = 2; systemUnderTest.LoadDungeon(); MockDungeonLoader.Received().LoadDungeon("Test", 1, 2); }
private EnterDungeonPM CreateSystem() { EnterDungeonPM systemUnderTest = new EnterDungeonPM(MockDungeonLoader); return(systemUnderTest); }