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

TestAttribute

Adding this attribute to a method makes the method callable from the NUnit test runner.
public string Author { get; set; }

The author of this test

public string Description { get; set; }

Descriptive text for this test

public object ExpectedResult { get; set; }

Gets or sets the expected result. Not valid if the test method has parameters.

public Type TestOf { get; set; }

The type that this test is testing

public TestAttribute()

public void ApplyToTest(Test test)

Modifies a test by adding a description, if not already set.

public TestMethod BuildFrom(IMethodInfo method, Test suite)

Construct a TestMethod from a given method.