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.
|
|
|
using FluentAssertions;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NzbDrone.Core.HealthCheck;
|
|
|
|
using NzbDrone.Core.Test.Framework;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Test.HealthCheck
|
|
|
|
{
|
|
|
|
[TestFixture]
|
|
|
|
public class HealthCheckFixture : CoreTest
|
|
|
|
{
|
|
|
|
private const string WikiRoot = "https://wiki.servarr.com/";
|
|
|
|
|
|
|
|
[TestCase("I blew up because of some weird user mistake", null, WikiRoot + "Lidarr_System#i_blew_up_because_of_some_weird_user_mistake")]
|
|
|
|
[TestCase("I blew up because of some weird user mistake", "#my_health_check", WikiRoot + "Lidarr_System#my_health_check")]
|
|
|
|
[TestCase("I blew up because of some weird user mistake", "Custom_Page#my_health_check", WikiRoot + "Custom_Page#my_health_check")]
|
|
|
|
public void should_format_wiki_url(string message, string wikiFragment, string expectedUrl)
|
|
|
|
{
|
|
|
|
var subject = new NzbDrone.Core.HealthCheck.HealthCheck(typeof(HealthCheckBase), HealthCheckResult.Warning, message, wikiFragment);
|
|
|
|
|
|
|
|
subject.WikiUrl.Should().Be(expectedUrl);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|