Interface IJsonValueMatcher

Namespace
ProtoTest.Json
Assembly
ProtoTest.Json.dll

Matches one JSON scalar value and describes the expectation on mismatch, so a failed assertion says what it wanted.

public interface IJsonValueMatcher
Extension Methods

Properties

Description

The expectation phrased for a failure message.

string Description { get; }

Property Value

string

Methods

Matches(object?, out string?)

Tests actual and, on mismatch, sets errorMessage to what was expected against what was found.

bool Matches(object? actual, out string? errorMessage)

Parameters

actual object
errorMessage string

Returns

bool