Table of Contents

Namespace SseAssertions.TUnit

Classes

SseEventsInOrderAssertion

Fluent TUnit assertion that verifies a Server-Sent Events stream contains a named sequence of events in order. Constructed by the TUnit source generator from the HasSseEventsInOrder(params string[]) extension on string; the WithStrictOrdering() chain method tightens the assertion to require the named events to appear contiguously.

SseFormatAssertions

TUnit-native fluent entry points for asserting on Server-Sent Events streams represented as text. v0.0.1 ships the IsServerSentEventsStream() discriminator only; the full surface (HTTP response bodies, streams, per-frame parsing, event-name / id / data assertions) ships in v0.1.0 once the wire-format parser is in place.

SseHasEventAssertion

Fluent TUnit assertion that walks a Server-Sent Events wire-format string and verifies the presence (or count) of frames matching a given event-type name. Constructed by the TUnit source generator from the HasSseEvent(string) extension on string; the narrower methods (WithData, WithDataParsedAs<T>, WithId, WithRetryMillis) constrain which frames count and the count terminators (AtLeast, AtMost, Exactly) close the assertion.

SseResponseHasEventAssertion

Fluent TUnit assertion that reads a Server-Sent Events HttpResponseMessage body and verifies the presence (or count) of frames matching a given event-type name. Constructed by the TUnit source generator from the HasSseEvent(string, bool, CancellationToken) extension on HttpResponseMessage; the narrower methods (WithData, WithDataParsedAs<T>, WithId, WithRetryMillis) constrain which frames count and the count terminators (AtLeast, AtMost, Exactly) close the assertion.

SseStreamAndHttpAssertions

Fluent TUnit entry points for asserting on Server-Sent Events streams produced by Stream and HttpResponseMessage receivers: first-event, in-order, retry-directive, content-type, and clean-cancellation checks. The frame-narrowing HasSseEvent chain on these same receivers lives in SseStreamHasEventAssertion and SseResponseHasEventAssertion; the shared read and matching helpers (SseAssertions.TUnit.SseStreamReader, SseAssertions.TUnit.SseEventMatcher) keep the diagnostics identical across all three receivers.

SseStreamHasEventAssertion

Fluent TUnit assertion that reads a Server-Sent Events Stream and verifies the presence (or count) of frames matching a given event-type name. Constructed by the TUnit source generator from the HasSseEvent(string, CancellationToken) extension on Stream; the narrower methods (WithData, WithDataParsedAs<T>, WithId, WithRetryMillis) constrain which frames count and the count terminators (AtLeast, AtMost, Exactly) close the assertion.