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.
[DEPRECATED] Please use the "ChainingAssertion-MSTest.Bin" package instead. Now, this package is a metadata-only package and just redirects to the "ChainingAssertion-MSTest.Bin". / Method Chaining base UnitTesting Extension Methods and Dynamic Private Accessor for MSTest.
An xUnit style framework for TypeScript with auto-discovery, async tests, and assertions.
Unit testing and assertion tools for use with Brevitee
Easy-to-use fluent assertions with actually useful failure messages.
### RavenDb Client power tools for RavenDb 3.0 - Powerful InitializeWithDefaults(..) method (to replace the Initialize() method). - Can seed data. - Can create indexes by list or assemblies. - Can throws an exception when the Database has an error (Asserting for errors). ------------------------------------------------ RavenDb is a nice Database to work with, but at times there's a lot of tweaks and ceremony required to just 'set stuff up'. This is -really- noticeable when you're writing tests. This library reduces the code required to take advantage of the power found in RavenDb by setting up the Database programatically to do what you want it to do.
Fluent Assertions extensions for NodaTime
An extension to Tellurium.MvcPages pack that allows to create test assertions based on webpage screenshots
Fluent assertion extensions for Serilog.TestLogger. Version 2.0.0 supports Fluent Assertions 6.
A set of simple assert extensions to give you more choices and easier to read tests
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.
C# source implementation that enhances LINQ to Objects with the method AssertCount. Asserts that a source sequence contains a given count of elements.
An extension to MaintainableSelenium.MvcPages pack that allows to create test assertions based on webpage screenshots
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.1. See the project page for packages for ASP MVC 5.0 and ASP MVC 4.0
Method Chaining base UnitTesting Extension Methods and Dynamic Private Accessor for xUnit.net. This provides only single .cs file.
Diagnostic utilities for use with DangrLib.
This package provides extensions to FluentAssertions for the Functional.Primitives package.
Flexible assertion library leveraging the .NET expression tree syntax
Guard is an opinionated argument assertion library for .NET
dotMemory Unit is an additional unit testing framework that allows you to write tests that check code for all kinds of memory issues. For example, these can be tests that determine leaks by checking memory for objects of a particular type, or tests that track memory traffic and fail in case the traffic exceeds some threshold. In other words, dotMemory Unit extends your unit testing framework (NUnit, MSTest, or other) with the functionality of a memory profiler. To run tests that use dotMemory Unit, you should reference the dotMemory.Unit assembly (which is a part of this package) from your test project. Tests with the support for dotMemory Unit can be run either with a standalone unit test runner of your choice or with the ReSharper unit test runner. For standalone runners, you should use a mediator - the standalone dotMemory Unit launcher. If you want to use the ReSharper unit test runner, you should have either ReSharper 9.1 (or later) or dotCover 3.1 (or later) installed on your machine
A .NET library providing foundations for automated testing - designed to make it easier to implement test cases and to read their output.
This is a FluentAssertions extension over the HttpResponseMessage object. It provides specific assertions and outputs rich erros messages that include the HTTP Request and Response. This version **DOES NOT** depend on the commercial version of the FluentAssertions library (>= 8.0.0).
.NET Unit test helpers for asserting that exceptions were / weren't thrown, and for "scenario tests".
A unit test library for .NET that allows you to build tests for FluentValidation rules in easy way.
FluentAssertions extensions to use with the Serilog.Sinks.InMemory package
This QUnit support for ASP.NET MVC. You may also use it for ASP.NET Webforms, but the css folder will not be on the default location. QUnit is a powerful, easy-to-use, JavaScript test suite. It's used by the jQuery project to test its code and plugins but is capable of testing any generic JavaScript code (and even capable of testing JavaScript code on the server-side). QUnit is especially useful for regression testing: Whenever a bug is reported, write a test that asserts the existence of that particular bug. Then fix it and commit both. Every time you work on the code again, run the tests. If the bug comes up again - a regression - you'll spot it immediately and know how to fix it, because you know what code you just changed. Having good unit test coverage makes safe refactoring easy and cheap. You can run the tests after each small refactoring step and always know what change broke something. QUnit is similar to other unit testing frameworks like JUnit, but makes use of the features JavaScript provides and helps with testing code in the browser, eg. with it's stop/start facilities for testing asynchronous code.
R# assertions and extensions library for Sitecore Diagnostics Tool.
Method Chaining base UnitTesting Extensions for xUnit.net 2.2+
A Roslyn analyzer to help migrate from xunit assertions to FluentAssertions
Anonymous value generator and some helpful assertions, developed for the open source ebook: Test-Driven Development - Extensive Tutorial. Some ideas are taken from the authors of sustainabletdd.com blog and Sustainable Test Driven Development book.
a library for bridging between NSubstitute and FluentAssertions
Asserting FluentResults objects with FluentAssertions
Provides some FluentAssertions extensions
Generalized assertion library, covering argument, operation, and unit test assertions.
Should assertion extensions for the XUnit v1 framework
Client helper for OAuth 2.0 "Client Credentials" flow with JWT token assertion
Adds support for the Unity engine. • Highlights Unity event functions and fields with an icon in the editor gutter. • Marks fields and methods implicitly used by Unity as in use. • Knows about all Unity script classes (MonoBehaviour, ScriptableObject, EditorWindow, etc). • Marks empty event methods as dead code. • Supports Unity API 5.0 - 5.6, and 2017.1b5. • Inspections and Quick Fixes for incorrect event function method signature and return types. • Support for undocumented functions such as OnValidate and OnPreGeneratingCSProjectFiles. • Warns if a coroutine return value is unused. • Context actions to add SerializeField or NonSerialized attributes to fields. • Context action to convert auto-property to property with serialized backing field. • Context action to convert event function method signature to/from coroutine. • Use Generate Code to create event functions, with parameters. • Start typing for automatic completion of event function declarations in a class. • Event function descriptions for methods and parameters displayed in tooltips and QuickDoc • "Read more" in QuickDoc navigates to Unity API documentation. • Correctly update .meta files. • Code completion, find usages and rename support for Invoke, InvokeRepeating, IsInvoking and CancelInvoke. Also Start/StopCoroutine. • Inspections for incorrectly applied attributes. • Inspection and Quick Fix to use CompareTag instead of string comparison. • Inspection and Quick Fix for using new with ScriptableObject or MonoBehaviour. • Inspection and Quick Fix for redundant SerializeField attribute usage. • "Create serialized field" from usage Quick Fix. • Suppress naming consistency checks on event functions. • Prevent ReSharper from suggesting `Assets` or `Scripts` as part of the namespace of your code. • Automatically sets Unity projects to C# 4 or C# 6. No more suggestions for features that won't compile! • Highlights UnityEngine.Color and Color32. Edit via colour palette quick fix. • Treats Unity debug assertions as assertion methods in ReSharper control flow analysis. • String formatting assistance for debug log methods. • Regex assistance for EditorTestsWithLogParser.ExpectLogLineRegex. • Types and type members marked with UnityEngine.Networking attributes are marked as in use. • Code completion, find usages and rename support for SyncVarAttribute hook function. • Inspections for incorrect SyncVarAttribute usage. • Marks empty event functions as dead code, with Quick Fix to remove. • Parse ShaderLab files, with syntax highlighting and syntax error highlighting. • Simple highlighting and code completion in Cg and HLSL code blocks and files. • Brace matching, todo explorer and commenting support for ShaderLab files. • Colour highlighting and editing in ShaderLab files. • Support for modularised UnityEngine assemblies. • Unity specific file templates.
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.
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.
A .NET Testing Framework