C# Класс 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.
Наследование: ITestCaseData
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

Ignore() публичный Метод

Ignores this TestCase.
public Ignore ( ) : TestCaseData
Результат TestCaseData

Ignore() публичный Метод

Ignores this TestCase, specifying the reason.
public Ignore ( string reason ) : TestCaseData
reason string The reason.
Результат TestCaseData

Returns() публичный Метод

Sets the expected result for the test
public Returns ( object result ) : TestCaseData
result object The expected result
Результат TestCaseData

SetCategory() публичный Метод

Applies a category to the test
public SetCategory ( string category ) : TestCaseData
category string
Результат TestCaseData

SetDescription() публичный Метод

Sets the description for the test case being constructed.
public SetDescription ( string description ) : TestCaseData
description string The description.
Результат TestCaseData

SetName() публичный Метод

Sets the name of the test case
public SetName ( string name ) : TestCaseData
name string
Результат TestCaseData

SetProperty() публичный Метод

Applies a named property to the test
public SetProperty ( string propName, double propValue ) : TestCaseData
propName string
propValue double
Результат TestCaseData

SetProperty() публичный Метод

Applies a named property to the test
public SetProperty ( string propName, int propValue ) : TestCaseData
propName string
propValue int
Результат TestCaseData

SetProperty() публичный Метод

Applies a named property to the test
public SetProperty ( string propName, string propValue ) : TestCaseData
propName string
propValue string
Результат TestCaseData

TestCaseData() публичный Метод

Initializes a new instance of the T:TestCaseData class.
public TestCaseData ( ) : System
Результат System

TestCaseData() публичный Метод

Initializes a new instance of the T:TestCaseData class.
public TestCaseData ( object arg ) : System
arg object The argument.
Результат System

TestCaseData() публичный Метод

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.
Результат System

TestCaseData() публичный Метод

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.
Результат System

Throws() публичный Метод

Sets the expected exception type for the test
public Throws ( Type exceptionType ) : TestCaseData
exceptionType System.Type Type of the expected exception.
Результат TestCaseData

Throws() публичный Метод

Sets the expected exception type for the test
public Throws ( string exceptionName ) : TestCaseData
exceptionName string FullName of the expected exception.
Результат TestCaseData