Beispiel #1
0
        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);
        }
Beispiel #2
0
 public void op_Download_AbsoluteUriNull()
 {
     Assert.Throws <ArgumentNullException>(() => CsvHttpAttribute.Download(null));
 }
Beispiel #3
0
 public void op_Download_AbsoluteUriNotFound()
 {
     Assert.Throws <WebException>(() => CsvHttpAttribute.Download("http://www.alan-dean.com/missing.csv"));
 }