Contains Source Generator which automatically generates classes that ensure all properties of the object are asserted. This is developement only dependedency, which is not compiled into your program.
Method Chaining base UnitTesting Extension Methods and Dynamic Private Accessor for NUnit. This provides only single .cs file.
Method Chaining base UnitTesting Extensions for xUnit.net 2.2+
Add deep object comparison to your NUnit assertions. Simply use Is.DeepEqualTo in place of Is.EqualTo.
Includes the current assertion library from xUnit.net, as source into your project. Supports any platform(s) compatible with .NET Standard 1.1.
ASP.NET MVC 5 integration helpers for implementing SAML 2.0 with ITfoxtec.Identity.Saml2. Adds request conversion and ActionResult helpers for SAML 2.0 login, logout, metadata, Redirect, POST, Artifact, and SOAP responses in .NET Framework MVC applications. Includes the core library's signature validation and configurable assertion encryption support. The README explains when to implement SAML 2.0 directly in ASP.NET MVC and when FoxIDs can act as an external SAML 2.0 bridge for applications that already support OpenID Connect or WS-Federation.
Adds assertion suppor to Verify (https://github.com/VerifyTests/Verify) support to verify
NUnit features a fluent assert syntax, parameterized, generic and theory tests and is user-extensible. A number of runners, both from the NUnit project and by third parties, are able to execute NUnit tests. Version 2.6 is the seventh major release of this well-known and well-tested programming tool. This package includes the NUnit console, gui and pnunit runners and is compatible with all NUnit framework versions 2.0 through 2.6. The NUnit project editor is also included. This unofficial package is limited to run on the 4.x framework which improves compatibility with Mono when running tests compiled for 4.x.
An extendible implementation of the Assert class in MSTest. Allows for extending the Assert methods with the default MSTest methods as a default. Includes a: * Throws() method for asserting exceptions. * ThrowsAsync() method for asserting exceptions for async methods. INSTRUCTIONS: In your test class, inherit from MsTestExtensions.BaseTest. Type Assert.Throws() or Assert.ThrowsAsync().. that's it! All of the standard Assert. methods from MsTest will still be available. Project page can be found at: https://github.com/bbraithwaite/MSTestExtensions
IL weaver that draws each assertion in a test as a note in its Kronikol diagram and a sub-step in its step list, passed or failed, with the values it compared. It instruments the assertion statements of FluentAssertions and AwesomeAssertions (.Should()), Shouldly (ShouldBe() and the rest) and TUnit (Assert.That()) in the compiled IL, so C# semantics such as null propagation, ref parameters and evaluation order are unchanged. Turn it on with [assembly: TrackAssertions].
Method Chaining base UnitTesting Extensions for MSTest V2
Now with .NET Standard support! The Should Assertion Library provides a set of extension methods for test assertions for AAA and BDD style tests. It provides assertions only, and as a result it is test runner agnostic. The assertions are a direct fork of the xUnit test assertions. This project was born because test runners Should be independent of the assertions!
Unit-test-framework-agnostic Expect-style assertions for .NET NExpect Provides Expect() syntax for doing assertions in .NET. Framework-agnostic, throwing UnmetExpectationExceptions for failures. Assertion exception type can be overridden at run-time. NExpect has grammar inspired by Chai and extensibility inspired by Jasmine.
Fluent assertions express what you want tested instead of how. This project also provides a simple BDD framework that lets you write tests that can be easily understood and verified by non-developers.
A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit test. This package adds Xamarin support. Supports the unit test frameworks xUnit, NUnit PCL and NUnitLite.
MvcRouteTester is a .Net library to help unit testing ASP MVC route tables. It contains asserts for for both regular controllers and the Api controllers that are new in MVC 4.0. It is built in .Net 4.5 and ASP MVC 5.2.3. See the project page for packages for ASP MVC 51, 5.0 and ASP MVC 4.0
A lightweight way to write your own code conventions for types, methods and properties as small, reusable C# classes, and check them from your unit tests.
Bridge package integrating TUnit.Mocks with TUnit.Assertions. Enables await Assert.That(mock.Verify.Method()).WasCalled(Times.Once).
My Tested ASP.NET Core MVC view components assertion methods.
Extensions to Awesome Assertions 8+ for dealing with DataSets and DataTables.
Xunit Snapshooter is a flexible snapshot testing tool for .Net unit tests with Xunit. It creates and asserts snapshots (json) within Xunit unit tests.
Method Chaining base UnitTesting Extension Methods and Dynamic Private Accessor for MbUnit. This provides only single .cs file.
When you make a unit test assertion with PowerAssert, your assertion messages become much more useful.
My Tested ASP.NET Core MVC controller view assertion methods.
Client helper for OAuth 2.0 "Client Credentials" flow with JWT token assertion
My Tested ASP.NET Core MVC view component result assertion methods.
FluentAssertions extensions for in-memory implementation of the Azure Service Bus clients for convenient testing.
A Roslyn analyzer to help migrate from xunit assertions to FluentAssertions
CodeJam is a set of handy reusable .NET components that can simplify your daily work and save your time when you copy and paste your favorite helper methods and classes from one project to another.
This project provides a simple way to validate JSON objects in dotnet. The main use for the tool is in integration tests.
Method Chaining base UnitTesting Extension Methods and Dynamic Private Accessor for MSTest.
Generates valid, readable C# from an expression tree, and can annotate that code with runtime values. Useful for e.g. code generation and unit testing assertions.
*TestBase* gives you a flying start with - fluent assertions that are easy to extend - sharp error messages - tools to help you test with “heavyweight” dependencies on - AspNetCore.Mvc, AspNet.Mvc or WebApi Contexts - HttpClient - Ado.Net - Streams & Logging - Mix & match with your favourite test runners & assertions. ``` UnitUnderTest.Method() .ShouldNotBeNull() .ShouldEqualByValueExceptFor(new {Id=1, Descr=expected}, ignoreList ) .Payload .ShouldMatchIgnoringCase("I expected this") .Should(someOtherPredicate); .Items .ShouldAll(predicate) .ShouldContain(item) .ShouldNotContain(predicate) .Where(predicate) .SingleOrAssertFail() item .ShouldEqualByValue() .ShouldEqualByValueExceptFor(...) .ShouldEqualByValueOnMembers() string .ShouldMatch(pattern) .ShouldNotMatch() .ShouldBeEmpty() .ShouldNotBeEmpty() .ShouldNotBeNullOrEmptyOrWhiteSpace() .ShouldEqualIgnoringCase() .ShouldContain() .ShouldBeContainedIn() .ShouldStartWith() .ShouldEndWith() ... numeric .ShouldBeBetween() .ShouldEqualWithTolerance()....GreaterThan....LessThan...GreaterOrEqualTo ... ienumerable .ShouldAll() .ShouldContain() .ShouldNotContain() .ShouldBeEmpty() .ShouldNotBeEmpty() ... stream .ShouldHaveSameStreamContentAs() .ShouldContain() value .ShouldBe() .ShouldNotBe() .ShouldBeOfType() .ShouldBeAssignableTo() ... ``` Testable Logging is in packages Extensions.Logging.ListOfString and Serilog.Sinks.ListOfString ``` // Extensions.Logging.ListOfString var log = new List<String>(); ILogger mslogger= new LoggerFactory().AddStringListLogger(log).CreateLogger("Test2"); // Serilog.Sinks.ListOfString Serilog.Logger slogger= new LoggerConfiguration().WriteTo.StringList(log).CreateLogger(); ```
The Should Assertion Library provides a set of extension methods for test assertions for AAA and BDD style tests. It provides assertions only, and as a result it is test runner agnostic. The assertions are a direct fork of the xUnit test assertions. This project was born because test runners Should be independent of the assertions!
FluentAssertions extensions for ITLibrium.Bdd
FluentAssertions extension methods for concise null checks (ShouldNotBeNull), exact exception message comparison (WithMessageSameAs) and line-by-line multiline text assertions with detailed error reporting.
Assertion helpers for .NET tests
An extension to Tellurium.MvcPages pack that allows to create test assertions based on webpage screenshots
An open source utility to turn object graphs into strings. Automate your ToString and unit tests asserts.