Skip to content

Missing analyser warning for test method with Tuple argument #2860

@TheRumle

Description

@TheRumle

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.

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