Class MultipleAssertException
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
ITestResultThe 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
SerializationInfocontext
StreamingContext
Properties
ResultState
Gets the ResultState provided by this exception.
public override ResultState ResultState { get; }
Property Value
TestResult
Gets the ITestResult of this test at the point the exception was thrown,
public ITestResult TestResult { get; }