public void Setup() { // Initilize Xamarin Forms MockForms.Init(); //This is your App.xaml and App.xaml.cs, which can have resources, etc. app = new App(); Application.Current = app; page = new BattleSettingsPage(); }
public void Setup() { // Initilize Xamarin Forms MockForms.Init(); //This is your App.xaml and App.xaml.cs, which can have resources, etc. app = new App(); Application.Current = app; // For now, set the engine to the Koenig Engine, change when ready BattleEngineViewModel.Instance.SetBattleEngineToKoenig(); page = new BattleSettingsPage(); }
public void BattleSettingsPage_Constructor_Grid_Map_Default_Should_Pass() { // Arrange BattleModeEnum original = BattleEngineViewModel.Instance.Engine.EngineSettings.BattleSettingsModel.BattleModeEnum; BattleEngineViewModel.Instance.Engine.EngineSettings.BattleSettingsModel.BattleModeEnum = BattleModeEnum.MapNext; // Act var result = new BattleSettingsPage(); // Reset BattleEngineViewModel.Instance.Engine.EngineSettings.BattleSettingsModel.BattleModeEnum = original; // Assert Assert.IsNotNull(result); }