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

ITestResult

public interface ITestResult : IXmlNodeBuilder
The ITestResult interface represents the result of a test.
using System; using System.Collections.Generic; using System.Runtime.CompilerServices; namespace NUnit.Framework.Interfaces { [NullableContext(1)] public interface ITestResult : IXmlNodeBuilder { ResultState ResultState { get; } string Name { get; } string FullName { get; } double Duration { get; } DateTime StartTime { get; } DateTime EndTime { get; } string Message { get; } [Nullable(2)] string StackTrace { [NullableContext(2)] get; } int TotalCount { get; } int AssertCount { get; } int FailCount { get; } int WarningCount { get; } int PassCount { get; } int SkipCount { get; } int InconclusiveCount { get; } bool HasChildren { get; } IEnumerable<ITestResult> Children { get; } ITest Test { get; } string Output { get; } IList<AssertionResult> AssertionResults { get; } ICollection<TestAttachment> TestAttachments { get; } } }