public void Did_JSON_Deserialize_Successfully() { string jsonString = JSONHelper.DownloadJSON().Result; modelLocator.ViewModel.AllPlayers = JSONHelper.DeserializeJSON(jsonString); Assert.IsNotNull(modelLocator.ViewModel.AllPlayers); }
public void Did_JSON_Download_Successfully() { string jsonString = JSONHelper.DownloadJSON().Result; bool jsonReturned = !String.IsNullOrWhiteSpace(jsonString); Assert.IsTrue(jsonReturned); }
public void Did_Two_Selectable_Players_Populate() { string jsonString = JSONHelper.DownloadJSON().Result; modelLocator.ViewModel.AllPlayers = JSONHelper.DeserializeJSON(jsonString); modelLocator.ViewModel.RandomizeSelectablePlayers(); Assert.IsNotNull(modelLocator.ViewModel.SelectablePlayers); }