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
To improve messages for failing tests, NUnit4 uses CallerMemberExpresion to convert the actual and constraint parameters into text.
CallerMemberExpresion
Users used to the old format spec, might accidentally pass in two paramters without realizing that this doesn't work.
Assert.That(actual, Is.EqualTo(expected), "Expected {0}, but got {1}", expected, actual);
In NUnit 4, this should have been specified as:
Assert.That(actual, Is.EqualTo(expected), $"Expected {expected}, but got {actual}");
The text was updated successfully, but these errors were encountered:
manfred-brands
Successfully merging a pull request may close this issue.
To improve messages for failing tests, NUnit4 uses
CallerMemberExpresion
to convert the actual and constraint parameters into text.Users used to the old format spec, might accidentally pass in two paramters without realizing that this doesn't work.
In NUnit 4, this should have been specified as:
The text was updated successfully, but these errors were encountered: