Closed
Description
Regression introduced here:
xunit/assert.xunit@726e482#diff-829bc159adac0f20073a5979fa4b4db6d7586a249058328199b486cf26b01070R189
Observed in xUnit 2.4.2-pre.13
For better or worse, we have framework code that doesn't specify a parameter name for some ArgumentException
s. EG: https://github.com/dotnet/runtime/blob/57bfe474518ab5b7cfe6bf7424a79ce3af9d6657/src/libraries/System.Drawing.Common/tests/FontFamilyTests.cs#L63-L64
Specifying null
for parameterName
used to work for testing this scenario but now it throws in the Assert library. Can we bring back the old behavior?