ExpectedExceptionAttribute 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
ExpectedExceptionAttribute() |
Constructor for a non-specific exception |
ExpectedExceptionAttribute(String) | |
ExpectedExceptionAttribute(Type) |
Constructor for a given type of exception |
ExpectedExceptionAttribute()
Constructor for a non-specific exception
public ExpectedExceptionAttribute ();
Applies to
ExpectedExceptionAttribute(String)
public ExpectedExceptionAttribute (string exceptionName);
new NUnit.Framework.ExpectedExceptionAttribute : string -> NUnit.Framework.ExpectedExceptionAttribute
Parameters
- exceptionName
- String
Applies to
ExpectedExceptionAttribute(Type)
Constructor for a given type of exception
public ExpectedExceptionAttribute (Type exceptionType);
new NUnit.Framework.ExpectedExceptionAttribute : Type -> NUnit.Framework.ExpectedExceptionAttribute
Parameters
- exceptionType
- Type
The type of the expected exception