<PackageReference Include="NUnit" Version="5.0.0-beta.1" />

NUnit.Framework.TestCaseDataBase<TSelf>

public abstract class TestCaseDataBase<TSelf> : TestCaseParameters where TSelf : TestCaseDataBase<TSelf>
Common base class for TestCaseData types.
protected TestCaseDataBase(object[] args)

Initializes a new instance of the TestCaseDataBase<T> class.

public static TestCaseData op_Implicit(TestCaseDataBase<TSelf> this)

Convert anything deriving from TestCaseDataBase<TSelf> to TestCaseData.

public TSelf Explicit()

Marks the test case as explicit.

public TSelf Explicit(string reason)

Marks the test case as explicit, specifying the reason.

protected abstract TSelf GetSelf()

Return this reference without a typecast.

public IgnoredTestCaseData Ignore(string reason)

Ignores this TestCase, specifying the reason.

public TSelf SetArgDisplayNames(string[] displayNames)

Sets the list of display names to use as the parameters in the test name.

public TSelf SetArgDisplayNames(object[] displayNames)

Sets the list of display names to use as the parameters in the test name. Objects are formatted using the same logic as default test names.

public TSelf SetCategory(string category)

Applies a category to the test

public TSelf SetDescription(string description)

Sets the description for the test case being constructed.

public TSelf SetName(string name)

Sets the name of the test case

public TSelf SetProperty(string propName, string propValue)

Applies a named property to the test

public TSelf SetProperty(string propName, int propValue)

Applies a named property to the test

public TSelf SetProperty(string propName, double propValue)

Applies a named property to the test