Table of Contents

Method ForNoException

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

ForNoException(Type)

Creates a new instance of the ThrowsException class to be thrown when an exception wasn't thrown by Assert.Throws.

public static ThrowsException ForNoException(Type expected)

Parameters

expected Type

The expected exception type

Returns