1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-02-26 15:52:42 +00:00

Fixed: Test Due to 4.6.2 Error Change

This commit is contained in:
Qstick 2019-06-09 18:35:51 -04:00
parent cead8c9ddb
commit 5efbcaa967

View file

@ -1,4 +1,4 @@

using System;
using FluentAssertions;
using NUnit.Framework;
@ -20,11 +20,18 @@ public void DownloadString_should_be_able_to_dowload_text_file()
}
[TestCase("")]
[TestCase("http://")]
public void DownloadString_should_throw_on_error(string url)
public void DownloadString_should_throw_on_empty_string(string url)
{
Assert.Throws<ArgumentException>(() => 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<NotSupportedException>(() => Subject.DownloadString(url));
ExceptionVerification.ExpectedWarns(1);
}
}
}