Class RequiresTestClockAttribute

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

Skips the test unless the run's clock is authoritative for the application under test: the winning in-process application server and a hosted worker bridge the test clock into the process they serve. A test that advances the clock against an application running in its own process - published, container, AppHost or loopback - must carry the gate instead of asserting a time the application never saw.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public sealed class RequiresTestClockAttribute : RequiresCapabilityAttribute, IProtoSkipCondition
Inheritance
RequiresTestClockAttribute
Implements
Inherited Members
Extension Methods

Examples

[RequiresTestClock]
public async Task AChargePointBootsWithTheSuitesClock() { ... }

Constructors

RequiresTestClockAttribute()

public RequiresTestClockAttribute()

Properties

DefaultReason

protected override string DefaultReason { get; }

Property Value

string