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 PickCharactersPage(); }
public void PickCharactersPage_Constructor_UT_Default_Should_Pass() { // Arrange // Act var result = new PickCharactersPage(false); // Reset // Assert Assert.IsNotNull(result); }
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; BattleEngineViewModel.Instance.SetBattleEngineToGame(); page = new PickCharactersPage(); }
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 PickCharactersPage(); }
public void PickCharactersPage_BattleButton_Clicked_Navigation_Should_Pass() { // Arrange PickCharactersPage page1 = new PickCharactersPage(); page1.Navigation.PushAsync(new HomePage()); page1.Navigation.PushAsync(new GamePage()); page1.Navigation.PushAsync(new GamePage()); // Act page1.BattleButton_Clicked(null, null); // Reset // Assert Assert.IsTrue(true); // Got to here, so it happened... }