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
Issue4413 caller argument expression #4430
Conversation
2ceeee2
to
1f54e70
Compare
Got the same. I changed the nullable message strings into non-null. That sølvet it. Suggest you merge my cae branch into your. I can merge back again tomorrow to get your changes in. |
@manfred-brands Partially merged this into the CallerArgumentExpression branch, PR #4427 We should handle conditional formatting as an addition afterwards. I am not sure why we actually need it btw, but perhaps some discussion I have missed? There are no overloads that don't compile now. |
String formatting is a very expensive operation. Doing this for every unit tests will make tests run much slower.
On tests that never fail, the pre-formatted option is 6x slower (net7.0) or even 22x slower (net48).
|
38191ea
to
7f5dd54
Compare
@OsirisTerje Once I noticed that you removed the overloads with no message parameter, I could finish mine. Note that there is no conditional on nunit462/net6.0. the CAE works for all TargetFrameworks. |
61d678a
to
c1cb2bf
Compare
@OsirisTerje I see a problem, the compiler cannot distinguish between:
When calling it like:
Because it matches both.