The message is Remove unused constructor of private type ‘WireMockTestContextSomethingSetupExtensions’` and that errors spans on the whole extension block.
If I apply the fix, it removes all the extension block altogether
Here’s a redacted version of our class that has the issue :
Summary
public static class WireMockTestContextSomethingSetupExtensions
{
private static readonly Fixture Fixture = new();
extension(WireMockTestContext testContext)
{
public SomeDto SetupSomething()
{
...
}
public void SetupSomethingElse(
Guid someId,
IReadOnlyCollection<SomethingElseDto> response)
{
...
}
public void SetupFoo(
Guid someId,
int someInt,
IReadOnlyCollection<FooDto> response)
{
...
}
public void SetupBar(
int someInt,
Guid someId,
IReadOnlyCollection<BarDto> response)
{
...
}
public void SetupFooBar(
Guid someId,
IReadOnlyCollection<FooBarDto> response)
{
...
}
}
}