ExpectedExceptionBaseAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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