-
Notifications
You must be signed in to change notification settings - Fork 21
Home
Robert Wagner edited this page Nov 2, 2016
·
8 revisions
Assent is a simple assertion library for long strings. By default it uses common diff tools to report on and resolve test failures.
It is test framework agnostic and works with .NET Framework 4.5
,
NET Standard 1.3
and .NET Core 1.0
.
Install the package from nuget by adding Assent
to your project.json
dependencies
or running install-package Assent
from the NuGet tool window.
In your test, do your usual setup and execution, but replace your assert line with:
this.Assent("String To Assert")
To customise the behaviour:
this.Assent("String To Assert")
var configuration = new Configuration() .UsingExtension(".json")
this.Assent("String To Assert", configuration)
You can use your favourite assertion library, see the [Comparer](#Comparer) page for details.