Add deep object comparison to your NUnit assertions. Simply use Is.DeepEqualTo in place of Is.EqualTo.
A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Works with .NET Standard 2.0 and higher, .NET Framework 4.7 and higher and .NET 6 and higher. Supports the unit test frameworks MSTest2, NUnit3, NUnit4, XUnit2, XUnit3, MSpec and TUnit. IMPORTANT: This version is free for open-source projects and non-commercial use, but commercial use requires [a paid license](https://xceed.com/products/unit-testing/fluent-assertions/). Check out the [license page](LICENSE) for more information.
Deprecated, use Flurl.Http https://www.nuget.org/packages/Flurl.Http/
Value Type Assertions
Several useful extensions to the Should Assertion Library for testing different type and enumerables of those type for equality. Like the Should extensions themselves, these extensions provide assertions only, and therefore are also test runner agnostic. I've been using these extensions in projects for several years and thought they would be useful for others.
Package Description
A no frills library for validating arguments.
Contains Moq argument matchers using FluentAssertions
Method Chaining base UnitTesting Extensions for MSTest V2
MVC Route Unit Tester provides convenient, easy to use methods that let you unit test the route table in your ASP.NET MVC application, including Area routes. Unlike many libraries, this lets you test routes both ways -- both incoming and outgoing. You can specify an incoming request and make one of several assertions about the outcome; such that the request matches a given route, matches no routes, or that it is ignored by the routing system. You can also specify route data and assert that a given URL will be generated by your application. Works with any unit testing library you choose, such as MSTest, NUnit, xUnit, mbUnit, and others. See the Project site for usage details.
Analyzers to help writing fluentassertions the right way.
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.
Description
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.
Provides argument validation methods and Code Contracts helpers.
Core dependency for AssertNET: AssertJ style fluent assertions for .NET Standard.
Integration test harness for ASP.Net MVC 5. Allows you to fully integration test an MVC web project without needing to host under IIS or similar. Allows access to both server state and client responses in a single assertion.
Asserts for testing Roslyn analyzers and code fixes.
FluentAssertions extensions for WireMock.Net
An InProcess HTTP server which can be mocked and asserted against to allow for full stack HTTP testing
Retired: Will autoupdate to use the XunitShould.Sources package instead.
Provides a way to assert client behaviour through a rule engine backed VirtualClusterConnection
MSTestExtensions. Includes a Throws() method for asserting exceptions.
Source generator emitting unit testing methods for result types
A bundle of libraries that contains reusable code used across other projects
Helpers for testing serialization
Provides some FluentAssertions extensions
A set of assertions to be used together with FluentAssertions library.
A Sitecore-like assertions library. Introduced in SIM 1.x, forked to be polished and amazing.
Fail early. Fail often. Guard assertions + code contracts. (Warning: Interface is likely to change wildly between versions. Use with caution.)
SmartTests enables you to write Smarter unit tests, wether you use NUnit, Xunit or MSTests. It is best to install SmartTests.Analyzer and SmartTests.Extension so that missing tests will be displayed. They are Smart in the sense that: 1. The Act line of your test is instantly identifiable. 2. You express your Act logical intent and the optional Analyzer will display all missing tests. 3. You can use smarter assertions than the ones provided by usual Testing Frameworks as Smart Tests knows what is your Act and when it is run. a. You ensure that a PropertyChanged event is raised with only one line of code. b. You ensure that any event is raised with only one line of code. c. You ensure that an object didn't changed at all with only one line of code. d. You ensure that your property set is effective by checking its value after is not equal to its value before with only one line of code. e. You show each effect of your Act code relatively to its previous value with only one line of code.
Helpers for testing ASP.NET Mvc with FluentAssertions
AwesomeAssertions extensions for WireMock.Net
Additional AutoMapper extension methods for SparkyTestHelpers.Mapping (Unit test helpers for asserting public properties on class instances "mapped" from one type to another have the correct values.) Version 1.x supports .NET Standard 1.5 and .NET Framework 4.5 Version 2.x supports .NET Standard 2.0 and .NET Framework 4.6
A Roslyn analyzer to help migrate from Xunit / NUnit assertions to FluentAssertions
Retired: Will autoupdate to use the XunitShould.Sources package instead.
A library that provides FluentAssertions-style syntax while using Shouldly under the hood, perfect for projects migrating from FluentAssertions to Shouldly.
A small set of extensions for FluentAssertions for working with Functional.Maybe
An assertion library for use with CDK Apps (Stability: Stable)
FluentAssertions extensions for BDD-toolkit-dotnet