Table of Contents

Class MultipleAssertException

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

Thrown when an assertion failed.

public class MultipleAssertException : ResultStateException, ISerializable
Inheritance
MultipleAssertException
Implements
Inherited Members
Extension Methods

Constructors

MultipleAssertException(ITestResult)

Construct based on the TestResult so far. This is the constructor used normally, when exiting the multiple assert block with failures. Not used internally but provided to facilitate debugging.

public MultipleAssertException(ITestResult testResult)

Parameters

testResult ITestResult

The current result, up to this point. The result is not used internally by NUnit but is provided to facilitate debugging.

MultipleAssertException(SerializationInfo, StreamingContext)

Serialization Constructor

protected MultipleAssertException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

Properties

ResultState

Gets the ResultState provided by this exception.

public override ResultState ResultState { get; }

Property Value

ResultState

TestResult

Gets the ITestResult of this test at the point the exception was thrown,

public ITestResult TestResult { get; }

Property Value

ITestResult