bdovaz
(Borja Domínguez)
1
When using these packages for testing:
They are executed in this way:
await new CSharpSourceGeneratorTest<MySourceGenerator, DefaultVerifier>()
{
}
.RunAsync();
await new CSharpCodeFixTest<MyDiagnosticAnalyzer, MyCodeFixProvider, DefaultVerifier>()
{
}
.RunAsync();
And the rule S2699
tells me: Add at least one assertion to this test case
.
In this case that code is the assert… To solve it I have to trick it by putting at the end Assert.True(true);
which is not ideal obviously.
Colin
(Colin)
2
Hey there!
What products/versions are you using to run analysis? SonarQube Server/Community Build? IDE? Cloud? (if one of the first two, which version?)