You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
655 B
26 lines
655 B
using FluentAssertions;
|
|
using NUnit.Framework;
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
namespace NzbDrone.Common.Test.ExtensionTests
|
|
{
|
|
[TestFixture]
|
|
public class UrlExtensionsFixture
|
|
{
|
|
[TestCase("http://my.local/url")]
|
|
[TestCase("https://my.local/url")]
|
|
public void should_report_as_valid_url(string url)
|
|
{
|
|
url.IsValidUrl().Should().BeTrue();
|
|
}
|
|
|
|
[TestCase("")]
|
|
[TestCase(" http://my.local/url")]
|
|
[TestCase("http://my.local/url ")]
|
|
public void should_report_as_invalid_url(string url)
|
|
{
|
|
url.IsValidUrl().Should().BeFalse();
|
|
}
|
|
}
|
|
}
|