Пример #1
0
        public void Did_JSON_Deserialize_Successfully()
        {
            string jsonString = JSONHelper.DownloadJSON().Result;

            modelLocator.ViewModel.AllPlayers = JSONHelper.DeserializeJSON(jsonString);
            Assert.IsNotNull(modelLocator.ViewModel.AllPlayers);
        }
Пример #2
0
        public void Did_JSON_Download_Successfully()
        {
            string jsonString   = JSONHelper.DownloadJSON().Result;
            bool   jsonReturned = !String.IsNullOrWhiteSpace(jsonString);

            Assert.IsTrue(jsonReturned);
        }
Пример #3
0
        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);
        }