From 5efbcaa967153a28d4fa17a3228394294d498822 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 9 Jun 2019 18:35:51 -0400 Subject: [PATCH] Fixed: Test Due to 4.6.2 Error Change --- src/NzbDrone.Common.Test/WebClientTests.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Common.Test/WebClientTests.cs b/src/NzbDrone.Common.Test/WebClientTests.cs index 899fbadbd..d9bfd7876 100644 --- a/src/NzbDrone.Common.Test/WebClientTests.cs +++ b/src/NzbDrone.Common.Test/WebClientTests.cs @@ -1,4 +1,4 @@ - + using System; using FluentAssertions; using NUnit.Framework; @@ -20,11 +20,18 @@ namespace NzbDrone.Common.Test } [TestCase("")] - [TestCase("http://")] - public void DownloadString_should_throw_on_error(string url) + public void DownloadString_should_throw_on_empty_string(string url) { Assert.Throws(() => Subject.DownloadString(url)); ExceptionVerification.ExpectedWarns(1); } + + // .net 4.6.2 throws NotSupportedException instead of ArgumentException here + [TestCase("http://")] + public void DownloadString_should_throw_on_not_supported_string(string url) + { + Assert.Throws(() => Subject.DownloadString(url)); + ExceptionVerification.ExpectedWarns(1); + } } }