Skip to content

Commit

Permalink
Ensure that it is possible to define a custom URL resolver for BaseRu…
Browse files Browse the repository at this point in the history
…leDescription
  • Loading branch information
pascalberger committed Jun 14, 2023
1 parent 7a8f8fb commit 1e5f14d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Cake.Issues.Tests/BaseRuleUrlResolverTests.cs
@@ -1,12 +1,29 @@
namespace Cake.Issues.Tests
{
using System;
using System.Diagnostics.CodeAnalysis;
using Cake.Issues.Testing;
using Shouldly;
using Xunit;

public class BaseRuleUrlResolverTests
{
public sealed class TheClass
{
[SuppressMessage(
"Major Code Smell",
"S1144:Unused private types or members should be removed",
Justification = "Ensure that it is possible to define a custom URL resolver for BaseRuleDescription")]
private class FakeRuleUrlResolverForBaseRuleDescription : BaseRuleUrlResolver<BaseRuleDescription>
{
/// <inheritdoc/>
protected override bool TryGetRuleDescription(string rule, BaseRuleDescription ruleDescription)
{
return true;
}
}
}

public sealed class TheAddUrlResolverMethod
{
[Fact]
Expand Down

0 comments on commit 1e5f14d

Please sign in to comment.