Assert.Throws Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
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
Parámetros
- expression
- IResolveConstraint
- code
- TestDelegate
- message
- String
- args
- Object[]
Devoluciones
Se aplica 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
Parámetros
- expression
- IResolveConstraint
- code
- TestDelegate
Devoluciones
Se aplica a
Throws(Type, TestDelegate)
public static Exception Throws (Type expectedExceptionType, NUnit.Framework.TestDelegate code);
static member Throws : Type * NUnit.Framework.TestDelegate -> Exception
Parámetros
- expectedExceptionType
- Type
- code
- TestDelegate
Devoluciones
Se aplica 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
Parámetros
- expression
- IResolveConstraint
- code
- TestDelegate
- message
- String
Devoluciones
Se aplica 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
Parámetros
- expectedExceptionType
- Type
- code
- TestDelegate
- message
- String
Devoluciones
Se aplica 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
Parámetros
- expectedExceptionType
- Type
- code
- TestDelegate
- message
- String
- args
- Object[]
Devoluciones
Se aplica 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)
Parámetros de tipo
- T
Parámetros
- code
- TestDelegate
- message
- String
Devoluciones
T
Se aplica 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)
Parámetros de tipo
- T
Parámetros
- code
- TestDelegate
Devoluciones
T
Se aplica 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)
Parámetros de tipo
- T
Parámetros
- code
- TestDelegate
- message
- String
- args
- Object[]
Devoluciones
T