public void LoadCountriesMethod_ShouldMakeCountries_WhenCalled() { CountryViewModel cvm = new CountryViewModel(); ObservableCollection <ICountry> collection = new ObservableCollection <ICountry>(); ObservableCollection <ICountry> collectionAfterLoad = new ObservableCollection <ICountry>(); collectionAfterLoad = cvm.Countries; cvm.LoadCountries(); Assert.AreNotEqual(collection, collectionAfterLoad); }
protected async override void OnAppearing() { base.OnAppearing(); await vm.LoadCountries(); }