Assert.Throws Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
Throws(IResolveConstraint, TestDelegate, String, Object[])
public static Exception Throws(NUnit.Framework.Constraints.IResolveConstraint expression, NUnit.Framework.TestDelegate code, string message, params object[] args);
static member Throws : NUnit.Framework.Constraints.IResolveConstraint * NUnit.Framework.TestDelegate * string * obj[] -> Exception
Parametri
- expression
- IResolveConstraint
- code
- TestDelegate
- message
- String
- args
- Object[]
Restituisce
Si applica a
Throws(IResolveConstraint, TestDelegate)
public static Exception Throws(NUnit.Framework.Constraints.IResolveConstraint expression, NUnit.Framework.TestDelegate code);
static member Throws : NUnit.Framework.Constraints.IResolveConstraint * NUnit.Framework.TestDelegate -> Exception
Parametri
- expression
- IResolveConstraint
- code
- TestDelegate
Restituisce
Si applica a
Throws(Type, TestDelegate)
public static Exception Throws(Type expectedExceptionType, NUnit.Framework.TestDelegate code);
static member Throws : Type * NUnit.Framework.TestDelegate -> Exception
Parametri
- expectedExceptionType
- Type
- code
- TestDelegate
Restituisce
Si applica a
Throws(IResolveConstraint, TestDelegate, String)
public static Exception Throws(NUnit.Framework.Constraints.IResolveConstraint expression, NUnit.Framework.TestDelegate code, string message);
static member Throws : NUnit.Framework.Constraints.IResolveConstraint * NUnit.Framework.TestDelegate * string -> Exception
Parametri
- expression
- IResolveConstraint
- code
- TestDelegate
- message
- String
Restituisce
Si applica a
Throws(Type, TestDelegate, String)
public static Exception Throws(Type expectedExceptionType, NUnit.Framework.TestDelegate code, string message);
static member Throws : Type * NUnit.Framework.TestDelegate * string -> Exception
Parametri
- expectedExceptionType
- Type
- code
- TestDelegate
- message
- String
Restituisce
Si applica a
Throws(Type, TestDelegate, String, Object[])
public static Exception Throws(Type expectedExceptionType, NUnit.Framework.TestDelegate code, string message, params object[] args);
static member Throws : Type * NUnit.Framework.TestDelegate * string * obj[] -> Exception
Parametri
- expectedExceptionType
- Type
- code
- TestDelegate
- message
- String
- args
- Object[]
Restituisce
Si applica a
Throws<T>(TestDelegate, String)
public static T Throws<T>(NUnit.Framework.TestDelegate code, string message) where T : Exception;
static member Throws : NUnit.Framework.TestDelegate * string -> 'T (requires 'T :> Exception)
Parametri di tipo
- T
Parametri
- code
- TestDelegate
- message
- String
Restituisce
T
Si applica a
Throws<T>(TestDelegate)
public static T Throws<T>(NUnit.Framework.TestDelegate code) where T : Exception;
static member Throws : NUnit.Framework.TestDelegate -> 'T (requires 'T :> Exception)
Parametri di tipo
- T
Parametri
- code
- TestDelegate
Restituisce
T
Si applica a
Throws<T>(TestDelegate, String, Object[])
public static T Throws<T>(NUnit.Framework.TestDelegate code, string message, params object[] args) where T : Exception;
static member Throws : NUnit.Framework.TestDelegate * string * obj[] -> 'T (requires 'T :> Exception)
Parametri di tipo
- T
Parametri
- code
- TestDelegate
- message
- String
- args
- Object[]
Restituisce
T