Table of Contents

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

Timestamp DateTimeOffset

The moment at which the event occurred. Compared against the caller-supplied epoch to produce a relative delta in the rendered output.

Label string

A 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

string

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; }

Property Value

DateTimeOffset