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
Assert.ThrowsAnyAsync<> is not validating the exception type.
For example, have the code throw an ArgumentException. Assert.ThrowsAnyAsync<> succeeds not only for ArgumentException or Exception, but also for unrelated types, such as KeyNotFoundException or TimeoutException.
The text was updated successfully, but these errors were encountered:
Version: 4.14.5
Assert.ThrowsAnyAsync<>
is not validating the exception type.For example, have the code throw an
ArgumentException
.Assert.ThrowsAnyAsync<>
succeeds not only forArgumentException
orException
, but also for unrelated types, such asKeyNotFoundException
orTimeoutException
.The text was updated successfully, but these errors were encountered: