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

Parameterized test with null value not showing up as a test #426

Closed
Sean-Brown opened this issue May 23, 2018 · 3 comments
Closed

Parameterized test with null value not showing up as a test #426

Sean-Brown opened this issue May 23, 2018 · 3 comments

Comments

@Sean-Brown
Copy link

Sean-Brown commented May 23, 2018

I created a parameterized test method whose first parameter is a string. I want to test the behavior if the string is null, however the test runner excludes this test:
image

image

@jayaranigarg
Copy link
Member

@Sean-Brown: This issue looks similar to #284.
Which version of MSTest.TestAdapter and MSTest.Testframework are you using? Can you move to latest version and try if that resolves the issue for you?
I am unable to repro this with version 1.3.0

@Sean-Brown
Copy link
Author

I'm using MSTest.TestFramework version 1.3.1 and MSTest.TestAdapter version 1.3.1. This time I observed that it does initially see 5 tests (however the null test shows as TestDeviceIdValidity(,True), but when I went to run the test that test got removed, so there definitely does seem to be something strange going on.

@Sean-Brown
Copy link
Author

Sorry I believe this is a Resharper bug. If I run the tests through the "Test Explorer" window then it sees all the tests:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants