From a9bf2910dcc569569346f2e3ba488de2fe8439ec Mon Sep 17 00:00:00 2001 From: ta264 Date: Thu, 11 Jul 2019 21:28:53 +0100 Subject: [PATCH] Fix WebClient test on Mono --- src/NzbDrone.Common.Test/WebClientTests.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Common.Test/WebClientTests.cs b/src/NzbDrone.Common.Test/WebClientTests.cs index d9bfd7876..589ee1bff 100644 --- a/src/NzbDrone.Common.Test/WebClientTests.cs +++ b/src/NzbDrone.Common.Test/WebClientTests.cs @@ -28,10 +28,19 @@ namespace NzbDrone.Common.Test // .net 4.6.2 throws NotSupportedException instead of ArgumentException here [TestCase("http://")] - public void DownloadString_should_throw_on_not_supported_string(string url) + public void DownloadString_should_throw_on_not_supported_string_windows(string url) { + WindowsOnly(); Assert.Throws(() => Subject.DownloadString(url)); ExceptionVerification.ExpectedWarns(1); } + + [TestCase("http://")] + public void DownloadString_should_throw_on_not_supported_string_mono(string url) + { + MonoOnly(); + Assert.Throws(() => Subject.DownloadString(url)); + ExceptionVerification.ExpectedWarns(1); + } } }