Table of Contents

Class NotRaisesException

Namespace
Xunit.Sdk
Assembly
xunit.v3.assert.dll

Exception thrown when Assert.NotRaisedAny fails.

public class NotRaisesException : XunitException, ISerializable, IAssertionException
Inheritance
NotRaisesException
Implements
Inherited Members

Methods

ForUnexpectedEvent()

Creates a new instance of the NotRaisesException class to be thrown when an unexpected event was raised.

ForUnexpectedEvent(Type)

Creates a new instance of the NotRaisesException class to be thrown when an unexpected event (with data) was raised.