|
|
|
@ -11,7 +11,7 @@ namespace NzbDrone.Core.Test.HealthCheck
|
|
|
|
|
private const string WikiRoot = "https://wiki.servarr.com/";
|
|
|
|
|
[TestCase("I blew up because of some weird user mistake", null, WikiRoot + "sonarr/system#i-blew-up-because-of-some-weird-user-mistake")]
|
|
|
|
|
[TestCase("I blew up because of some weird user mistake", "#my-health-check", WikiRoot + "sonarr/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")]
|
|
|
|
|
[TestCase("I blew up because of some weird user mistake", "custom_page#my-health-check", WikiRoot + "sonarr/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);
|
|
|
|
|