Table of Contents

Namespace MetricsAssertions.TUnit

Classes

InstrumentCaptureAssertions

TUnit-native fluent Assert.That(capture).Has* assertions over a single-instrument InstrumentCapture: counter and up-down-counter totals, measurement counts, last value, and tag presence. Generated via the TUnit [GenerateAssertion] source generator (AOT-clean).

MeasurementSetAssertions

TUnit-native fluent Assert.That(set).Has* assertions over a MeasurementSet: counter totals, measurement counts, emptiness, histogram sample sum / average / range, exact and order-insensitive sample sets, and tag-consistency. Narrow first with Tagged(string, object?) / ForInstrument(string) to assert a dimension. Generated via the TUnit [GenerateAssertion] source generator (AOT-clean).

MeterCaptureAssertions

TUnit-native fluent Assert.That(meter).Has* assertions over a multi-instrument MeterCapture, addressing one bundled instrument by name. Generated via the TUnit [GenerateAssertion] source generator (AOT-clean).