You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because there's no point in moving on to the second assertion when the first assertion is true.
To reduce (since we probably can't eliminate) a false positive like this, perhaps we can check if any the actual parameters in the assertions came from the out parameter of a previous assertion.
The text was updated successfully, but these errors were encountered:
I think NUnit.Analyzers is too aggressive in recommending
Assert.Multiple
andAssert.EnterMultipleScope
for code following the Try-Parse pattern.It doesn't make too much sense to group the following assertions into a single
Assert.Multiple
scopebecause there's no point in moving on to the second assertion when the first assertion is true.
To reduce (since we probably can't eliminate) a false positive like this, perhaps we can check if any the
actual
parameters in the assertions came from theout
parameter of a previous assertion.The text was updated successfully, but these errors were encountered: