-
Notifications
You must be signed in to change notification settings - Fork 237
Closed
Labels
False PositiveRule IS triggered when it shouldn't be.Rule IS triggered when it shouldn't be.
Milestone
Description
Description
The following rule supports several frameworks but Moq is not among them:
https://rules.sonarsource.com/csharp/RSPEC-2699/
As you can see in the examples, it allows to verify for example that a method or event call is made:
https://github.com/moq/moq
But not being an Assert throws this rule as a false positive and forces to do ugly things like Assert.True(true).
Repro steps
Create a minimal example of Moq by taking it from the Readme.md file in repository and see how it throws the false positive of the mentioned rule.
Metadata
Metadata
Assignees
Labels
False PositiveRule IS triggered when it shouldn't be.Rule IS triggered when it shouldn't be.