From 78297e62b24a10a42461b47ca5dc368b5b2ab81f Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Tue, 30 Jul 2013 23:02:50 -0700 Subject: [PATCH] fixed broken test --- NzbDrone.Common.Test/WebClientTests.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/NzbDrone.Common.Test/WebClientTests.cs b/NzbDrone.Common.Test/WebClientTests.cs index 6b7cbc356..7efd4d4c3 100644 --- a/NzbDrone.Common.Test/WebClientTests.cs +++ b/NzbDrone.Common.Test/WebClientTests.cs @@ -1,4 +1,6 @@  +using System; +using System.Net; using FluentAssertions; using NUnit.Framework; using NzbDrone.Test.Common; @@ -19,14 +21,13 @@ namespace NzbDrone.Common.Test [TestCase("")] [TestCase("http://")] - [TestCase(null)] - [ExpectedException] public void DownloadString_should_throw_on_error(string url) { - var jquery = Subject.DownloadString(url); + Assert.Throws(() => Subject.DownloadString(url)); + ExceptionVerification.ExpectedWarns(1); } - - + + [Test] public void should_get_headers() {