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

Snapshot.Match not detected as Assert #133

Open
mcflux opened this issue Aug 17, 2021 · 0 comments
Open

Snapshot.Match not detected as Assert #133

mcflux opened this issue Aug 17, 2021 · 0 comments

Comments

@mcflux
Copy link

mcflux commented Aug 17, 2021

Describe the bug
Im using Snapshot.Match(object) to assert a test. But I get the warning S2699: Tests should include assertions
. Do I have to ignore that warning or is there a reason why it not detected?

To Reproduce
Steps to reproduce the behavior:

  1. Create a Testclass
  2. Add a test with only a Match.Snapshot()
  3. Warning apears depending on your analyzer settings

Expected behavior
No warning since Snapshot.Match is an assertion for me

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 20H2
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

No branches or pull requests

1 participant