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

TestCaseAttribute

TestCaseAttribute is used to mark parameterized test cases and provide them with their arguments.
public object[] Arguments { get; }

Gets the list of arguments to a test case

public IList Categories { get; }

Gets a list of categories associated with this test;

public string Category { get; set; }

Gets or sets the category associated with this test. May be a single category or a comma-separated list.

public string Description { get; set; }

Gets or sets the description.

public Type ExpectedException { get; set; }

Gets or sets the expected exception.

public string ExpectedExceptionName { get; set; }

Gets or sets the name the expected exception.

public string ExpectedMessage { get; set; }

Gets or sets the expected message of the expected exception

public object ExpectedResult { get; set; }

Gets or sets the expected result.

public bool Explicit { get; set; }

Gets or sets the explicit status of the test

public bool HasExpectedResult { get; }

Gets a flag indicating whether an expected result has been set.

public bool Ignore { get; set; }

Gets or sets the ignored status of the test

public bool Ignored { get; set; }

Gets or sets the ignored status of the test

public string IgnoreReason { get; set; }

Gets or sets the reason for not running the test. Set has the side effect of marking the test as ignored.

public MessageMatch MatchType { get; set; }

Gets or sets the type of match to be performed on the expected message

public string Reason { get; set; }

Gets or sets the reason for not running the test

public object Result { get; set; }

Gets or sets the expected result. Use ExpectedResult by preference.

public string TestName { get; set; }

Gets or sets the name of the test.

public TestCaseAttribute(object[] arguments)

Construct a TestCaseAttribute with a list of arguments. This constructor is not CLS-Compliant

public TestCaseAttribute(object arg)

Construct a TestCaseAttribute with a single argument

public TestCaseAttribute(object arg1, object arg2)

Construct a TestCaseAttribute with a two arguments

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

Construct a TestCaseAttribute with a three arguments