UnitTestAssertException Constructors

Definition

Overloads

UnitTestAssertException()

Initializes a new instance of the UnitTestAssertException class.

UnitTestAssertException(String)

Initializes a new instance of the UnitTestAssertException class.

UnitTestAssertException(SerializationInfo, StreamingContext)
UnitTestAssertException(String, Exception)

Initializes a new instance of the UnitTestAssertException class.

UnitTestAssertException()

Initializes a new instance of the UnitTestAssertException class.

protected:
 UnitTestAssertException();
protected UnitTestAssertException ();
Protected Sub New ()

Applies to

UnitTestAssertException(String)

Initializes a new instance of the UnitTestAssertException class.

protected:
 UnitTestAssertException(System::String ^ msg);
protected UnitTestAssertException (string msg);
new Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestAssertException : string -> Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestAssertException
Protected Sub New (msg As String)

Parameters

msg
String

The message.

Applies to

UnitTestAssertException(SerializationInfo, StreamingContext)

protected:
 UnitTestAssertException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected UnitTestAssertException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestAssertException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestAssertException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

Applies to

UnitTestAssertException(String, Exception)

Initializes a new instance of the UnitTestAssertException class.

protected:
 UnitTestAssertException(System::String ^ msg, Exception ^ ex);
protected UnitTestAssertException (string msg, Exception ex);
new Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestAssertException : string * Exception -> Microsoft.VisualStudio.TestTools.UnitTesting.UnitTestAssertException
Protected Sub New (msg As String, ex As Exception)

Parameters

msg
String

The message.

ex
Exception

The exception.

Applies to