public void op_Download_AbsoluteUri() { const string expected = "A1"; var actual = CsvHttpAttribute.Download("http://www.alan-dean.com/example.csv").First()["A"]; Assert.Equal(expected, actual); }
public void op_Download_AbsoluteUriNull() { Assert.Throws <ArgumentNullException>(() => CsvHttpAttribute.Download(null)); }
public void op_Download_AbsoluteUriNotFound() { Assert.Throws <WebException>(() => CsvHttpAttribute.Download("http://www.alan-dean.com/missing.csv")); }