|
|
@ -1,4 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using System.Net;
|
|
|
|
using FluentAssertions;
|
|
|
|
using FluentAssertions;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NzbDrone.Test.Common;
|
|
|
|
using NzbDrone.Test.Common;
|
|
|
@ -19,11 +21,10 @@ namespace NzbDrone.Common.Test
|
|
|
|
|
|
|
|
|
|
|
|
[TestCase("")]
|
|
|
|
[TestCase("")]
|
|
|
|
[TestCase("http://")]
|
|
|
|
[TestCase("http://")]
|
|
|
|
[TestCase(null)]
|
|
|
|
|
|
|
|
[ExpectedException]
|
|
|
|
|
|
|
|
public void DownloadString_should_throw_on_error(string url)
|
|
|
|
public void DownloadString_should_throw_on_error(string url)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var jquery = Subject.DownloadString(url);
|
|
|
|
Assert.Throws<ArgumentException>(() => Subject.DownloadString(url));
|
|
|
|
|
|
|
|
ExceptionVerification.ExpectedWarns(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|