A simple diff comparison asserter that makes it easy to assert if two texts (strings) are equal, and display the differences in a diff tool if they are not. Simply put it is a much simpler (and dumber) version of ApprovalTests that should get the job done for simple scenarios. You can easily create a file that contains the expected result (your specification or example) and then compare the contents of the file with the actual value that is produced during the test. A new addition is the ability to compare objects wihout using files. It is an extension of FluentAssertions that allows comparison and exclusion of complex objects.
An extension to MaintainableSelenium.MvcPages pack that allows to create test assertions based on webpage screenshots
WriteOnce<T> is a thread-safe value container whose value can be set exactly once. This package adds fluent assertions for that container.
Framework-agnostic core for text-snapshot assertions. Provides string-against-file comparison with line-ending / BOM / whitespace options, default file naming from test class and method names, environment-variable-driven accept-mode workflow with CI guard, and line-based diff rendering. Test-framework-specific entry points live in adapter packages (SnapshotAssertions.TUnit).
TUnit-native text-snapshot assertions using [AssertionExtension]. Provides Assert.That(actual).MatchesSnapshot() / .MatchesSnapshotFile() with line-based diff display, accept-via-environment-variable workflow, and CI guard. Baselines are plain-text files at any path, so existing golden files work as they are. AOT-compatible, trimmable, no reflection. Designed for API-surface verification and small text snapshots; coexists with Verify for object-graph cases.
Asserts for testing Roslyn analyzers and code fixes.
FluentAssertions extensions for BDD-toolkit-dotnet
Extension methods for XUnit to compare JSON in unit tests.
Assertions extensions to use with the Serilog.Sinks.InMemory package
FluentAssertions extension methods for `Testably.Abstractions`.
Assertions for DeFuncto data types. Assertions fail by throwing an exceptions, which is acknowledged by virtually every popular .NET testing library as a way to fail a test. Not yet localized, assertions fail messages are always in English.
Framework-agnostic Serilog assertion abstractions and contracts
Serilog-specific adapter discovery and runtime selection for assertion frameworks
IL weaver that automatically instruments FluentAssertions .Should() calls with assertion tracking. Unlike the source rewriter, this operates on compiled IL — preserving full C# semantics including null propagation, ref parameters, and expression evaluation order. Activated via [assembly: TrackAssertionsBeta].
Auto-wires an OpenTelemetry TracerProvider for TUnit test processes. Install to get distributed tracing with zero configuration.
Unit test helpers for asserting public properties on class instances "mapped" from one type to another (via AutoMapper, another tool, or hand-written code) have the correct values.
This package contains NUnit 2.x Constraints to be used with XMLUnit.NET's core. XMLUnit provides you with the tools to verify the XML you emit is the one you want to create. It provides helpers to validate against an XML Schema, assert the values of XPath queries or compare XML documents against expected outcomes.
.NET Unit test helpers for asserting that exceptions were / weren't thrown, and for "scenario tests".
Includes the current assertion library from xUnit.net, as source into your project. Supports any platform(s) compatible with .NET Standard 2.0 and C# 7.3. For more information on consumption, please see https://github.com/xunit/assert.xunit/blob/e525ab38d96e7bab2f654eb5d4ccd8e881c0a8ac/README.md
Client helper for OAuth2 2-legged flows with client secret and JWT client assertion support and token caching
Deep object comparison assertions for xUnit.net v3, powered by CompareNETObjects. Compare whole object graphs in one line, with fluent options to ignore members, ignore collection order, allow numeric and date tolerances, and plug in custom comparers.
Fluent Assertions extensions for ProblemDetails within HttpResponseMessage
Serilog.Sinks.ListOfString logs to a list of string so you can test your logging : ``` var log= new List<String>(); var testLogger= new LoggerConfiguration().WriteTo.StringList(log).CreateLogger(); ...tests... log.ShouldContain( x=>x.Matches("kilroy was here") ); ``` This is for Serilog. For Microsoft.Extensions.Logging.Abstractions see also https://www.nuget.org/packages/Extensions.Logging.ListOfString/ Part of https://www.nuget.org/packages/TestBase *TestBase* gives you a flying start to unit testing with fluent assertions that are easy to extend, and tools for testing with dependencies on AspNetMvc, HttpClient, Ado.Net, Streams and Loggers.
A performant, easy to use, lightweight C# assertion library meant to be used both during development and in production. Providing excellent error messages and logging/reporting capabilities. Makes it easy to take care of all unexpected states, catching them directly when they appear, thus making them easily traceable.
AwesomeAssertions extensions for WireMock.Net RestClient
A set of simple assert extensions to give you more choices and easier to read tests
xUnit.v3 assertion helpers that integrate with the NexusLabs.Framework result-pattern types (TriedEx<T>, TriedNullEx<T?>) and HTTP response shapes. Uses C# 14 extension(Assert) blocks to augment Xunit.Assert with NexusLabs-aware overloads.
Core utilities, constants, and TMF specification abstractions for TMF-compliant systems
Enables verification of objects using inline snapshots
Flexible assertion library leveraging the .NET expression tree syntax
Token endpoints using certificates, to be used during development to not expose certificates on dev machines
This package provides common methods used by all other packages especially the most used data structures of the framework. Additionally it provides implementations for debugging assertions, a weak event model and the logging adapter. For more details how to use MARS, please use the documentation: https://www.mars-group.org/docs/tutorial/intro
Use code snippet 'assertion' to get the declaration at the top of the file. Then just use Assert.Equal(...) and the like.