Class RaisesException
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
Exception thrown when Assert.Raises fails.
public class RaisesException : XunitException, ISerializable, IAssertionException
- Inheritance
-
RaisesException
- Implements
- Inherited Members
Methods
- ForIncorrectType(Type, Type)
Creates a new instance of the RaisesException class to be thrown when the raised event wasn't the expected type.
- ForNoEvent()
Creates a new instance of the RaisesException class to be thrown when no event (without data) was raised.
- ForNoEvent(Type)
Creates a new instance of the RaisesException class to be thrown when no event (with data) was raised.