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
People sometimes write Assert.That(MyMethod(), Throws.InstanceOf<SomeException>()); and wonder why it fails.
We need an analyzer rule that detects this and with code-fixes that convert the code to: Assert.That(() => MyMethod(), Throws.InstanceOf<SomeException>());
The text was updated successfully, but these errors were encountered:
People sometimes write
Assert.That(MyMethod(), Throws.InstanceOf<SomeException>());
and wonder why it fails.We need an analyzer rule that detects this and with code-fixes that convert the code to:
Assert.That(() => MyMethod(), Throws.InstanceOf<SomeException>());
The text was updated successfully, but these errors were encountered: