LogAssertions.TUnit
Assert on logs captured from ILogger via a fake collector.
await Assert.That(logs).HasLogged(Warning);
Nine small packages. Each adds a fluent Assert.That(...) vocabulary for one domain. AOT-safe, reflection-free, MIT.
Assert on logs captured from ILogger via a fake collector.
await Assert.That(logs).HasLogged(Warning);
Text-snapshot and approval testing with scrubbers and diffs.
await Assert.That(output).MatchesSnapshot();
TimeProvider state, timer leaks, and time budgets.
await Assert.That(provider).HasNoActiveTimers();
Tolerance-aware numeric, geometry, and statistics checks.
await Assert.That(v).IsApproximatelyEqualTo(pi);
JSON path, value, and shape assertions over a document.
await Assert.That(json).HasJsonProperty("id");
Server-Sent Events wire-format and event-stream checks.
await Assert.That(stream).HasEvent("message");
gRPC status codes, metadata, and response assertions.
await Assert.That(call).HasStatusCode(OK);
OpenTelemetry Activity, span, and tag assertions.
await Assert.That(activity).HasTag("http.method");
Metrics and instrument measurements via a collector.
await Assert.That(metrics).HasCounted("requests");