Struct TimelineEvent
- Namespace
- TimeAssertions.Render
- Assembly
- TimeAssertions.dll
A single event in a timeline: a non-null label paired with the moment it occurred. Used by Render(DateTimeOffset, IReadOnlyList<TimelineEvent>) to produce deterministic snapshot-friendly text from a sequence of timestamped events.
public readonly record struct TimelineEvent : IEquatable<TimelineEvent>
- Implements
- Inherited Members
Constructors
TimelineEvent(DateTimeOffset, string)
A single event in a timeline: a non-null label paired with the moment it occurred. Used by Render(DateTimeOffset, IReadOnlyList<TimelineEvent>) to produce deterministic snapshot-friendly text from a sequence of timestamped events.
public TimelineEvent(DateTimeOffset Timestamp, string Label)
Parameters
TimestampDateTimeOffsetThe moment at which the event occurred. Compared against the caller-supplied epoch to produce a relative delta in the rendered output.
LabelstringA short, human-readable identifier for the event. Non-null by contract; null is unsupported and produces undefined rendering.
Properties
Label
A short, human-readable identifier for the event. Non-null by contract; null is unsupported and produces undefined rendering.
public string Label { get; init; }
Property Value
Timestamp
The moment at which the event occurred. Compared against the caller-supplied epoch to produce a relative delta in the rendered output.
public DateTimeOffset Timestamp { get; init; }