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

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 string Author { get; set; }

The author of this test

public string Category { get; set; }

Gets and sets the category for this test case. May be a comma-separated list of categories.

public string Description { get; set; }

Gets or sets the description.

public object ExpectedResult { get; set; }

Gets or sets the expected result.

public bool Explicit { get; set; }

Gets or sets a value indicating whether this TestCaseAttribute is explicit.

public bool HasExpectedResult { get; }

Returns true if the expected result has been set

public string Ignore { get; set; }

Gets or sets the reason for ignoring the test

public string IgnoreReason { get; set; }

Gets or sets the ignore reason. When set to a non-null non-empty value, the test is marked as ignored.

public IPropertyBag Properties { get; }

Gets the properties of the test case

public string Reason { get; set; }

Gets or sets the reason for not running the test.

public RunState RunState { get; }

Gets or sets the RunState of this test case.

public string TestName { get; set; }

Gets or sets the name of the test.

public Type TestOf { get; set; }

The type that this test is testing

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

Construct one or more TestMethods from a given MethodInfo, using available parameter data.