Method ForIncorrectExceptionType
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
ForIncorrectExceptionType(Type, Exception)
Creates a new instance of the ThrowsException class to be thrown when an exception of the wrong type was thrown by Assert.Throws.
public static ThrowsException ForIncorrectExceptionType(Type expected, Exception actual)