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

TestAttribute

Marks the method as 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)

Builds a single test from the specified method and context.