Skip to content

Conversation

@sebastien-marichal
Copy link
Contributor

Fixes #7961

I was not able to reproduce the FP.
Since the rule checks for method invocations that include the Verify word, we already support Moq. (see UnitTestHelper.cs)

I made an update in rspec to mention it: SonarSource/rspec#4052
I only added test cases with Moq usage.

Copy link
Contributor

@mary-georgiou-sonarsource mary-georgiou-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please:

  • add the moq tests in their own moq file, add more tests for moq if there are any and also add some non-compliant tests cases too.
  • update the comment here to reflect where moq comes from
    maybe do a quick cleanup of the rule done already
  • then if still moq is supported normally rename the PR to "Add UTs fro Moq" and close the issue as already supported.

@sebastien-marichal sebastien-marichal changed the title Fix S2699 FP: Support Moq S2699: Add UTs for Moq Jul 11, 2024
@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

Copy link
Contributor

@mary-georgiou-sonarsource mary-georgiou-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mary-georgiou-sonarsource mary-georgiou-sonarsource merged commit 7370c0b into master Jul 11, 2024
@mary-georgiou-sonarsource mary-georgiou-sonarsource deleted the sma/s1854-top-level-fn branch July 11, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix S2699 FP: Support Moq

2 participants