<PackageReference Include="NUnit" Version="2.6.4" />

TestCaseData

public class TestCaseData : ITestCaseData
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.
public object[] Arguments { get; }

Gets the argument list to be provided to the test

public IList Categories { get; }

Gets a list of categories associated with this test.

public string Description { get; }

Gets the description of the test

public Type ExpectedException { get; }

Gets the expected exception Type

public string ExpectedExceptionName { get; }

Gets the FullName of the expected exception

public bool Explicit { get; }

Gets a value indicating whether this ITestCaseData is explicit.

public bool HasExpectedResult { get; }

Returns true if the result has been set

public bool Ignored { get; }

Gets a value indicating whether this ITestCaseData is ignored.

public string IgnoreReason { get; }

Gets the ignore reason.

public IDictionary Properties { get; }

Gets the property dictionary for this test

public object Result { get; }

Gets the expected result

public string TestName { get; }

Gets the name to be used for the test

public TestCaseData(object[] args)

Initializes a new instance of the TestCaseData class.

public TestCaseData(object arg)

Initializes a new instance of the TestCaseData class.

public TestCaseData(object arg1, object arg2)

Initializes a new instance of the TestCaseData class.

public TestCaseData(object arg1, object arg2, object arg3)

Initializes a new instance of the TestCaseData class.

Ignores this TestCase.

public TestCaseData Ignore(string reason)

Ignores this TestCase, specifying the reason.

Marks this TestCase as Explicit

public TestCaseData MakeExplicit(string reason)

Marks this TestCase as Explicit, specifying the reason.

public TestCaseData Returns(object result)

Sets the expected result for the test

public TestCaseData SetCategory(string category)

Applies a category to the test

public TestCaseData SetDescription(string description)

Sets the description for the test case being constructed.

public TestCaseData SetName(string name)

Sets the name of the test case

public TestCaseData SetProperty(string propName, string propValue)

Applies a named property to the test

public TestCaseData SetProperty(string propName, int propValue)

Applies a named property to the test

public TestCaseData SetProperty(string propName, double propValue)

Applies a named property to the test

public TestCaseData Throws(Type exceptionType)

Sets the expected exception type for the test

public TestCaseData Throws(string exceptionName)

Sets the expected exception type for the test