public void op_Download_AbsoluteUri() { var expected = new FileInfo("example.json").ReadToEnd(); var actual = JsonUriAttribute.Download("http://www.alan-dean.com/example.json").ReadToEnd(); Assert.Equal(expected, actual); }
public void op_Download_AbsoluteUriNull() { Assert.Throws <ArgumentNullException>(() => JsonUriAttribute.Download(null)); }
public void op_Download_AbsoluteUriNotFound() { Assert.Throws <WebException>(() => JsonUriAttribute.Download("http://www.alan-dean.com/missing.json")); }