Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S2699: Add UTs for Moq #9519

Merged
merged 3 commits into from
Jul 11, 2024
Merged

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
Copy link

sonarcloud bot commented Jul 11, 2024

Copy link

sonarcloud bot commented Jul 11, 2024

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
29 checks passed
@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