コード例 #1
0
        public void download_should_reject_nonexistent_urls(string testUrl)
        {
            var service = new FileStore();

            Assert.Throws <FileNotFoundException>(() => service.Download(testUrl, Path.GetTempFileName()));
        }
コード例 #2
0
        public void download_should_reject_invalid_urls(string testUrl)
        {
            var service = new FileStore();

            Assert.Throws <ArgumentException>(() => service.Download(testUrl, Path.GetTempFileName()));
        }