Class MultipleAssertException
Thrown when an assertion failed.
Implements
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
public class MultipleAssertException : ResultStateException, ISerializable
Constructors
View SourceMultipleAssertException(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.
Declaration
public MultipleAssertException(ITestResult testResult)
Parameters
Type | Name | Description |
---|---|---|
ITestResult | testResult | 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
Declaration
protected MultipleAssertException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
Properties
View SourceResultState
Gets the ResultState provided by this exception.
Declaration
public override ResultState ResultState { get; }
Property Value
Type | Description |
---|---|
ResultState |
Overrides
View SourceTestResult
Gets the ITestResult of this test at the point the exception was thrown,
Declaration
public ITestResult TestResult { get; }
Property Value
Type | Description |
---|---|
ITestResult |