Class JsonShapeMatcher

Namespace
ProtoTest.Json
Assembly
ProtoTest.Json.dll
public static class JsonShapeMatcher
Inheritance
JsonShapeMatcher
Inherited Members

Methods

AssertMatch(string, object?, JsonSerializerOptions?)

public static IReadOnlyList<string> AssertMatch(string content, object? expected, JsonSerializerOptions? options = null)

Parameters

content string
expected object
options JsonSerializerOptions

Returns

IReadOnlyList<string>

AssertMatch(JsonElement, object?, JsonSerializerOptions?)

public static IReadOnlyList<string> AssertMatch(JsonElement actual, object? expected, JsonSerializerOptions? options = null)

Parameters

actual JsonElement
expected object
options JsonSerializerOptions

Returns

IReadOnlyList<string>