Method ForNoException
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
ForNoException(Type)
Creates a new instance of the ThrowsAnyException class to be thrown when an exception wasn't thrown by Assert.ThrowsAny.
public static ThrowsAnyException ForNoException(Type expected)
Parameters
expectedTypeThe expected exception type