Table of Contents

Class XunitAssertExtensions

Namespace
TeaPie.Testing
Assembly
TeaPie.dll
public static class XunitAssertExtensions
Inheritance
XunitAssertExtensions
Inherited Members

Methods

JsonContains(string, string, params string[])

Verifies whether a JSON object (container) contains another JSON object (contained). If not, assertion exception is thrown. Property names specified in ignoreProperties are excluded from the comparison.

public static void JsonContains(string container, string contained, params string[] ignoreProperties)

Parameters

container string

The JSON string expected to contain the contained JSON.

contained string

The JSON string expected to be contained within the container JSON.

ignoreProperties string[]

An array of property names to exclude from the comparison.