Exemple #1
0
        public void CanLoadStringFromURL()
        {
            JSONModel model    = new JSONModel();
            string    expected = LoadTestStringFromURL();
            string    result   = JSONModel.LoadStringFromURL(testURL);

            Assert.AreEqual(expected, result);
        }
Exemple #2
0
 public void LoadStringThrowsWithBadURL()
 {
     JSONModel model  = new JSONModel();
     string    result = JSONModel.LoadStringFromURL("bad");
 }