TestCaseData Class

Summary

The TestCaseData class represents a set of arguments and other parameter info to be used for a parameterized test case. It is derived from TestCaseParameters and adds a fluent syntax for use in initializing the test case.
Namespace
TCLite
Base Types
  • TestCaseParameters
graph BT Type-->Base0["TestCaseParameters"] Type["TestCaseData"] class Type type-node

Syntax

public class TestCaseData : TestCaseParameters

Constructors

Name Summary
TestCaseData(object, object, object) Initializes a new instance of the TestCaseData class.
TestCaseData(object, object) Initializes a new instance of the TestCaseData class.
TestCaseData(object) Initializes a new instance of the TestCaseData class.
TestCaseData(object[]) Initializes a new instance of the TestCaseData class.

Methods

Name Value Summary
Ignore() TestCaseData
Ignores this TestCase.
Ignore(string) TestCaseData
Ignores this TestCase, specifying the reason.
Returns(object) TestCaseData
Sets the expected result for the test
SetCategory(string) TestCaseData
Applies a category to the test
SetDescription(string) TestCaseData
Sets the description for the test case being constructed.
SetProperty(string, double) TestCaseData
Applies a named property to the test
SetProperty(string, int) TestCaseData
Applies a named property to the test
SetProperty(string, string) TestCaseData
Applies a named property to the test