Docs · API reference · Motus
TestMethodNameContext Class#
Carries the current test method name across async boundaries.
The visual runner sets this before invoking test lifecycle methods so that
MotusTestBase can resolve per-method attributes (e.g. [PerformanceBudget])
without requiring a framework-specific TestContext.
public static class TestMethodNameContext
Inheritance System.Object → TestMethodNameContext
Properties#
Current Property#
The active test method name, or null if not set.
public static string? Current { get; }
Property Value#
Methods#
Clear() Method#
Clears the active test method name.
public static void Clear();
Set(string) Method#
Sets the active test method name for the current async flow.
public static void Set(string? methodName);
Parameters#
methodName System.String