Docs · API reference · Motus.Abstractions

TestInfo Class#

Metadata for an individual test, passed to the reporter when a test begins.

public sealed record TestInfo : System.IEquatable<Motus.Abstractions.TestInfo>

Inheritance System.Object → TestInfo

Implements System.IEquatable<TestInfo>

Constructors#

TestInfo(string, string, IReadOnlyList<string>) Constructor#

Metadata for an individual test, passed to the reporter when a test begins.

public TestInfo(string TestName, string SuiteName, System.Collections.Generic.IReadOnlyList<string>? Tags=null);

Parameters#

TestName System.String

The fully qualified name of the test.

SuiteName System.String

The name of the suite this test belongs to.

Tags System.Collections.Generic.IReadOnlyList<System.String>

Optional tags or labels associated with the test.

Properties#

SuiteName Property#

The name of the suite this test belongs to.

public string SuiteName { get; init; }

Property Value#

System.String

Tags Property#

Optional tags or labels associated with the test.

public System.Collections.Generic.IReadOnlyList<string>? Tags { get; init; }

Property Value#

System.Collections.Generic.IReadOnlyList<System.String>

TestName Property#

The fully qualified name of the test.

public string TestName { get; init; }

Property Value#

System.String