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
Show file Open project: antonsamarsky/emitmapper-tools Class Usage Examples

Public Methods

Method 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 method

Ignores this TestCase.
public Ignore ( ) : TestCaseData
return TestCaseData

Ignore() public method

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

Returns() public method

Sets the expected result for the test
public Returns ( object result ) : TestCaseData
result object The expected result
return TestCaseData

SetCategory() public method

Applies a category to the test
public SetCategory ( string category ) : TestCaseData
category string
return TestCaseData

SetDescription() public method

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

SetName() public method

Sets the name of the test case
public SetName ( string name ) : TestCaseData
name string
return TestCaseData

SetProperty() public method

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

SetProperty() public method

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

SetProperty() public method

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

TestCaseData() public method

Initializes a new instance of the T:TestCaseData class.
public TestCaseData ( ) : System
return System

TestCaseData() public method

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

TestCaseData() public method

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.
return System

TestCaseData() public method

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.
return System

Throws() public method

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

Throws() public method

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