Class ResultStateException
Abstract base for Exceptions that terminate a test and provide a ResultState.
Inheritance
ResultStateException
Implements
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
public abstract class ResultStateException : Exception, ISerializable
Constructors
View SourceResultStateException(SerializationInfo, StreamingContext)
Serialization Constructor
Declaration
protected ResultStateException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
ResultStateException(string)
Declaration
protected ResultStateException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message that explains the reason for the exception |
ResultStateException(string, Exception?)
Declaration
public ResultStateException(string message, Exception? inner)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message that explains the reason for the exception |
Exception | inner | The exception that caused the current exception |
Properties
View SourceResultState
Gets the ResultState provided by this exception
Declaration
public abstract ResultState ResultState { get; }
Property Value
Type | Description |
---|---|
ResultState |