public void Setup() { // Initilize Xamarin Forms MockForms.Init(); // Add each model here to warm up and load it. Game.Helpers.DataSetsHelper.WarmUp(); ViewModel = ScoreIndexViewModel.Instance; }
public async Task ScoreIndexPage_OnAppearing_Valid_Should_Pass() { // Arrange ScoreIndexViewModel ViewModel = ScoreIndexViewModel.Instance; // Act OnAppearing(); // Reset // Assert Assert.IsTrue(true); // Got to here, so it happened... }
public void ScoreIndexPage_OnAppearing_Valid_Empty_Should_Pass() { // Arrange ScoreIndexViewModel ViewModel = ScoreIndexViewModel.Instance; ViewModel.Dataset.Clear(); // Act OnAppearing(); // Reset // Assert Assert.IsTrue(true); // Got to here, so it happened... }
/// <summary> /// Constructor for Index Page /// /// Get the ScoreIndexView Model /// </summary> public ScoreIndexPage() { InitializeComponent(); BindingContext = ViewModel = ScoreIndexViewModel.Instance; }