Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Missing analyser warning for test method with Tuple argument #2860

Copy link
Copy link

Description

@TheRumle
Issue body actions

I have a test method with the following signature:

[Test]
[MethodDataSource(nameof(IncreasingLoad))]
public void CanHandleManyRequests_With_Changing_Subscribers((int consumers, int requests) state){...}

with the following data generator method:

public static IEnumerable<Func<(int consumers, int messages)>> IncreasingLoad(){....}

After updating to version 0.53.0 I get the following runtime error:
Expected exactly 1 argument, but got 2.

Changing the test method to public void CanHandleManyRequests_With_Changing_Subscribers(int consumers, int requests){...} fixes the issue.
I love the API change, where I now inject the two arguments instead of the tuple. I would like a compiletime error instead of a runtime error.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.