AssertionException Constructors

Definition

Overloads

AssertionException(String)
AssertionException(SerializationInfo, StreamingContext)

Serialization Constructor

AssertionException(String, Exception)

AssertionException(String)

public AssertionException (string message);
new NUnit.Framework.AssertionException : string -> NUnit.Framework.AssertionException

Parameters

message
String

The error message that explains the reason for the exception

Applies to

AssertionException(SerializationInfo, StreamingContext)

Serialization Constructor

protected AssertionException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new NUnit.Framework.AssertionException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> NUnit.Framework.AssertionException

Parameters

Applies to

AssertionException(String, Exception)

public AssertionException (string message, Exception inner);
new NUnit.Framework.AssertionException : string * Exception -> NUnit.Framework.AssertionException

Parameters

message
String

The error message that explains the reason for the exception

inner
Exception

The exception that caused the current exception

Applies to