Table of Contents

Class AssertionException

Namespace
NUnit.Framework
Assembly
nunit.framework.dll

Thrown when an assertion failed.

public class AssertionException : ResultStateException, ISerializable
Inheritance
AssertionException
Implements
Inherited Members

Constructors

AssertionException(SerializationInfo, StreamingContext)

Serialization Constructor

protected AssertionException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

AssertionException(string)

public AssertionException(string message)

Parameters

message string

The error message that explains the reason for the exception

AssertionException(string, Exception)

public AssertionException(string message, Exception inner)

Parameters

message string

The error message that explains the reason for the exception

inner Exception

The exception that caused the current exception

Properties

ResultState

Gets the ResultState provided by this exception

public override ResultState ResultState { get; }

Property Value

ResultState