Fixed: Unit Test Fixes

This commit is contained in:
Qstick
2019-07-14 21:18:03 -04:00
parent 3bf5476922
commit 242d530bb4
19 changed files with 177 additions and 148 deletions

View File

@@ -21,10 +21,20 @@ namespace NzbDrone.Common.Test
[TestCase("")]
[TestCase("http://")]
public void DownloadString_should_throw_on_error(string url)
public void DownloadString_should_throw_on_error_windows(string url)
{
WindowsOnly();
Assert.Throws<ArgumentException>(() => Subject.DownloadString(url));
ExceptionVerification.ExpectedWarns(1);
}
[TestCase("http://")]
public void DownloadString_should_throw_on_not_supported_string_mono(string url)
{
MonoOnly();
Assert.Throws<System.Net.WebException>(() => Subject.DownloadString(url));
ExceptionVerification.ExpectedWarns(1);
}
}
}