Share via


ExpectedExceptionBaseAttribute Constructors

Definition

Overloads

ExpectedExceptionBaseAttribute()

Initializes a new instance of the ExpectedExceptionBaseAttribute class with a default no-exception message

ExpectedExceptionBaseAttribute(String)

Initializes a new instance of the ExpectedExceptionBaseAttribute class with a no-exception message

ExpectedExceptionBaseAttribute()

Initializes a new instance of the ExpectedExceptionBaseAttribute class with a default no-exception message

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

Applies to

ExpectedExceptionBaseAttribute(String)

Initializes a new instance of the ExpectedExceptionBaseAttribute class with a no-exception message

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

Parameters

noExceptionMessage
String

Message to include in the test result if the test fails due to not throwing an exception

Applies to