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

Parameter count not matching [TestCase] #2

Open
JohanLarsson opened this issue Oct 10, 2016 · 2 comments
Open

Parameter count not matching [TestCase] #2

JohanLarsson opened this issue Oct 10, 2016 · 2 comments
Assignees

Comments

@JohanLarsson
Copy link

JohanLarsson commented Oct 10, 2016

[Test]
public void Foo(string parameter)
{         
}

^ should have either
a) No arguments
b) [TestCase("abc")]

Also for [TestCase(...)] count that parameter count matches.

@emanoelxavier emanoelxavier self-assigned this Oct 10, 2016
@emanoelxavier
Copy link
Collaborator

Johan, can you provide more details? Is this a bug on an existing analyzer or a request for a new one?

@JohanLarsson
Copy link
Author

Request for a new one, if it does not exist. I have not tried the analyzer yet, just scanned the source.
Reason why an analyzer for this would be good is that the R# testrunner silently ignores tests where parameters does not match.

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