Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.13 KB

README.FluentAssertions.md

File metadata and controls

38 lines (26 loc) · 1.13 KB

NMatcher.FluentAssertions Build status NuGet

NMatcher

NMatcher is a test utility, that lets you easier test responses and json, when some part of the response is something out of your control (autogenerated id, guid, datetime etc). It ports functionality of original php-matcher library to dotnet.

Installation:

Install-Package NMatcher.FluentAssertions

Full documentation

Read the full documentation here.

Example usage

using NMatcher.FluentAssertions;

@"{
    ""id"" : ""5a645a20-5225-431b-8c62-031b87f58b73"",
    ""foo"": ""bar""
  }"
  .Should()
  .MatchJson(@"
    {
        ""id"": ""@guid@"",
        ""foo"": ""@string@""
    }"
    );

License

This library is distributed under the MIT license. Please see the LICENSE file.