ExpectedExceptionAttribute Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| ExpectedExceptionAttribute() |
Konstruktor für eine nicht spezifische Ausnahme |
| ExpectedExceptionAttribute(String) | |
| ExpectedExceptionAttribute(Type) |
Konstruktor für einen bestimmten Ausnahmetyp |
ExpectedExceptionAttribute()
Konstruktor für eine nicht spezifische Ausnahme
public ExpectedExceptionAttribute();
Gilt für:
ExpectedExceptionAttribute(String)
public ExpectedExceptionAttribute(string exceptionName);
new NUnit.Framework.ExpectedExceptionAttribute : string -> NUnit.Framework.ExpectedExceptionAttribute
Parameter
- exceptionName
- String
Gilt für:
ExpectedExceptionAttribute(Type)
Konstruktor für einen bestimmten Ausnahmetyp
public ExpectedExceptionAttribute(Type exceptionType);
new NUnit.Framework.ExpectedExceptionAttribute : Type -> NUnit.Framework.ExpectedExceptionAttribute
Parameter
- exceptionType
- Type
Der Typ der erwarteten Ausnahme