We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[TestMethod] #pragma warning disable CA1861 // Avoid constant arrays as arguments [DataRow(new int[] { })] [DataRow(new int[] { 11 })] [DataRow(new int[] { 11, 1337, 12 })] #pragma warning restore CA1861 public void ItemsTest(int[] input) { // Test Code }
Produces: MSTEST0014: DataRow argument type should match method parameter type. Mismatches occur at indices: (0, 0)
MSTEST0014: DataRow argument type should match method parameter type. Mismatches occur at indices: (0, 0)
Should be accepted as valid since input is an array
input
AB#2058804
The text was updated successfully, but these errors were encountered:
Hi @Mertsch,
Thanks for the bug report. I can confirm that I can reproduce the issue. I am still working on a fix for MSTest v3.4 so I am adding this one too.
Sorry, something went wrong.
✅ Successfully linked to Azure Boards work item(s):
Evangelink
No branches or pull requests
Describe the bug
Produces:
MSTEST0014: DataRow argument type should match method parameter type. Mismatches occur at indices: (0, 0)
Expected behavior
Should be accepted as valid since
input
is an arrayAdditional context
AB#2058804
The text was updated successfully, but these errors were encountered: