Condividi tramite


Assert.Catch Metodo

Definizione

Overload

Catch(Type, TestDelegate, String, Object[])

public static Exception Catch(Type expectedExceptionType, NUnit.Framework.TestDelegate code, string message, params object[] args);
static member Catch : Type * NUnit.Framework.TestDelegate * string * obj[] -> Exception

Parametri

expectedExceptionType
Type
message
String
args
Object[]

Restituisce

Si applica a

Catch(TestDelegate)

public static Exception Catch(NUnit.Framework.TestDelegate code);
static member Catch : NUnit.Framework.TestDelegate -> Exception

Parametri

Restituisce

Si applica a

Catch(TestDelegate, String)

public static Exception Catch(NUnit.Framework.TestDelegate code, string message);
static member Catch : NUnit.Framework.TestDelegate * string -> Exception

Parametri

message
String

Restituisce

Si applica a

Catch(Type, TestDelegate)

public static Exception Catch(Type expectedExceptionType, NUnit.Framework.TestDelegate code);
static member Catch : Type * NUnit.Framework.TestDelegate -> Exception

Parametri

expectedExceptionType
Type

Restituisce

Si applica a

Catch(TestDelegate, String, Object[])

public static Exception Catch(NUnit.Framework.TestDelegate code, string message, params object[] args);
static member Catch : NUnit.Framework.TestDelegate * string * obj[] -> Exception

Parametri

message
String
args
Object[]

Restituisce

Si applica a

Catch(Type, TestDelegate, String)

public static Exception Catch(Type expectedExceptionType, NUnit.Framework.TestDelegate code, string message);
static member Catch : Type * NUnit.Framework.TestDelegate * string -> Exception

Parametri

expectedExceptionType
Type
message
String

Restituisce

Si applica a

Catch<T>(TestDelegate, String)

public static T Catch<T>(NUnit.Framework.TestDelegate code, string message) where T : Exception;
static member Catch : NUnit.Framework.TestDelegate * string -> 'T (requires 'T :> Exception)

Parametri di tipo

T

Parametri

message
String

Restituisce

T

Si applica a

Catch<T>(TestDelegate, String, Object[])

public static T Catch<T>(NUnit.Framework.TestDelegate code, string message, params object[] args) where T : Exception;
static member Catch : NUnit.Framework.TestDelegate * string * obj[] -> 'T (requires 'T :> Exception)

Parametri di tipo

T

Parametri

message
String
args
Object[]

Restituisce

T

Si applica a

Catch<T>(TestDelegate)

public static T Catch<T>(NUnit.Framework.TestDelegate code) where T : Exception;
static member Catch : NUnit.Framework.TestDelegate -> 'T (requires 'T :> Exception)

Parametri di tipo

T

Parametri

Restituisce

T

Si applica a