C# Class NUnit.Framework.TestCaseData

The TestCaseData class represents a set of arguments and other parameter info to be used for a parameterized test case. It provides a number of instance modifiers for use in initializing the test case. Note: Instance modifiers are getters that return the same instance after modifying it's state.
Inheritance: ITestCaseData
Afficher le fichier Open project: antonsamarsky/emitmapper-tools Class Usage Examples

Méthodes publiques

Méthode Description
Ignore ( ) : TestCaseData

Ignores this TestCase.

Ignore ( string reason ) : TestCaseData

Ignores this TestCase, specifying the reason.

Returns ( object result ) : TestCaseData

Sets the expected result for the test

SetCategory ( string category ) : TestCaseData

Applies a category to the test

SetDescription ( string description ) : TestCaseData

Sets the description for the test case being constructed.

SetName ( string name ) : TestCaseData

Sets the name of the test case

SetProperty ( string propName, double propValue ) : TestCaseData

Applies a named property to the test

SetProperty ( string propName, int propValue ) : TestCaseData

Applies a named property to the test

SetProperty ( string propName, string propValue ) : TestCaseData

Applies a named property to the test

TestCaseData ( ) : System

Initializes a new instance of the T:TestCaseData class.

TestCaseData ( object arg ) : System

Initializes a new instance of the T:TestCaseData class.

TestCaseData ( object arg1, object arg2 ) : System

Initializes a new instance of the T:TestCaseData class.

TestCaseData ( object arg1, object arg2, object arg3 ) : System

Initializes a new instance of the T:TestCaseData class.

Throws ( Type exceptionType ) : TestCaseData

Sets the expected exception type for the test

Throws ( string exceptionName ) : TestCaseData

Sets the expected exception type for the test

Method Details

Ignore() public méthode

Ignores this TestCase.
public Ignore ( ) : TestCaseData
Résultat TestCaseData

Ignore() public méthode

Ignores this TestCase, specifying the reason.
public Ignore ( string reason ) : TestCaseData
reason string The reason.
Résultat TestCaseData

Returns() public méthode

Sets the expected result for the test
public Returns ( object result ) : TestCaseData
result object The expected result
Résultat TestCaseData

SetCategory() public méthode

Applies a category to the test
public SetCategory ( string category ) : TestCaseData
category string
Résultat TestCaseData

SetDescription() public méthode

Sets the description for the test case being constructed.
public SetDescription ( string description ) : TestCaseData
description string The description.
Résultat TestCaseData

SetName() public méthode

Sets the name of the test case
public SetName ( string name ) : TestCaseData
name string
Résultat TestCaseData

SetProperty() public méthode

Applies a named property to the test
public SetProperty ( string propName, double propValue ) : TestCaseData
propName string
propValue double
Résultat TestCaseData

SetProperty() public méthode

Applies a named property to the test
public SetProperty ( string propName, int propValue ) : TestCaseData
propName string
propValue int
Résultat TestCaseData

SetProperty() public méthode

Applies a named property to the test
public SetProperty ( string propName, string propValue ) : TestCaseData
propName string
propValue string
Résultat TestCaseData

TestCaseData() public méthode

Initializes a new instance of the T:TestCaseData class.
public TestCaseData ( ) : System
Résultat System

TestCaseData() public méthode

Initializes a new instance of the T:TestCaseData class.
public TestCaseData ( object arg ) : System
arg object The argument.
Résultat System

TestCaseData() public méthode

Initializes a new instance of the T:TestCaseData class.
public TestCaseData ( object arg1, object arg2 ) : System
arg1 object The first argument.
arg2 object The second argument.
Résultat System

TestCaseData() public méthode

Initializes a new instance of the T:TestCaseData class.
public TestCaseData ( object arg1, object arg2, object arg3 ) : System
arg1 object The first argument.
arg2 object The second argument.
arg3 object The third argument.
Résultat System

Throws() public méthode

Sets the expected exception type for the test
public Throws ( Type exceptionType ) : TestCaseData
exceptionType System.Type Type of the expected exception.
Résultat TestCaseData

Throws() public méthode

Sets the expected exception type for the test
public Throws ( string exceptionName ) : TestCaseData
exceptionName string FullName of the expected exception.
Résultat TestCaseData