Class AssertionException
Thrown when an assertion failed.
Implements
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
public class AssertionException : ResultStateException, ISerializable
Constructors
View SourceAssertionException(SerializationInfo, StreamingContext)
Serialization Constructor
Declaration
protected AssertionException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
AssertionException(string)
Declaration
public AssertionException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message that explains the reason for the exception |
AssertionException(string, Exception?)
Declaration
public AssertionException(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 override ResultState ResultState { get; }
Property Value
Type | Description |
---|---|
ResultState |