Table of Contents

Class JsonValueAssertions

Namespace
TUnit.Assertions.Extensions
Assembly
JsonAssertions.TUnit.dll
public static class JsonValueAssertions
Inheritance
JsonValueAssertions
Inherited Members

Methods

HasJsonValue(IAssertionSource<string>, string, bool, string?, string?)

Generated extension method for HasJsonValue

public static String_HasJsonValue_String_Bool_Assertion HasJsonValue(this IAssertionSource<string> source, string path, bool expected, string? pathExpression = null, string? expectedExpression = null)

Parameters

source IAssertionSource<string>
path string
expected bool
pathExpression string
expectedExpression string

Returns

String_HasJsonValue_String_Bool_Assertion

HasJsonValue(IAssertionSource<string>, string, double, string?, string?)

Generated extension method for HasJsonValue

public static String_HasJsonValue_String_Double_Assertion HasJsonValue(this IAssertionSource<string> source, string path, double expected, string? pathExpression = null, string? expectedExpression = null)

Parameters

source IAssertionSource<string>
path string
expected double
pathExpression string
expectedExpression string

Returns

String_HasJsonValue_String_Double_Assertion

HasJsonValue(IAssertionSource<string>, string, int, string?, string?)

Generated extension method for HasJsonValue

public static String_HasJsonValue_String_Int_Assertion HasJsonValue(this IAssertionSource<string> source, string path, int expected, string? pathExpression = null, string? expectedExpression = null)

Parameters

source IAssertionSource<string>
path string
expected int
pathExpression string
expectedExpression string

Returns

String_HasJsonValue_String_Int_Assertion

HasJsonValue(IAssertionSource<string>, string, long, string?, string?)

Generated extension method for HasJsonValue

public static String_HasJsonValue_String_Long_Assertion HasJsonValue(this IAssertionSource<string> source, string path, long expected, string? pathExpression = null, string? expectedExpression = null)

Parameters

source IAssertionSource<string>
path string
expected long
pathExpression string
expectedExpression string

Returns

String_HasJsonValue_String_Long_Assertion

HasJsonValue(IAssertionSource<string>, string, string, string?, string?)

Generated extension method for HasJsonValue

public static String_HasJsonValue_String_String_Assertion HasJsonValue(this IAssertionSource<string> source, string path, string expected, string? pathExpression = null, string? expectedExpression = null)

Parameters

source IAssertionSource<string>
path string
expected string
pathExpression string
expectedExpression string

Returns

String_HasJsonValue_String_String_Assertion

HasJsonValue(IAssertionSource<string>, string, uint, string?, string?)

Generated extension method for HasJsonValue

public static String_HasJsonValue_String_UInt32_Assertion HasJsonValue(this IAssertionSource<string> source, string path, uint expected, string? pathExpression = null, string? expectedExpression = null)

Parameters

source IAssertionSource<string>
path string
expected uint
pathExpression string
expectedExpression string

Returns

String_HasJsonValue_String_UInt32_Assertion

HasJsonValue(IAssertionSource<string>, string, ulong, string?, string?)

Generated extension method for HasJsonValue

public static String_HasJsonValue_String_UInt64_Assertion HasJsonValue(this IAssertionSource<string> source, string path, ulong expected, string? pathExpression = null, string? expectedExpression = null)

Parameters

source IAssertionSource<string>
path string
expected ulong
pathExpression string
expectedExpression string

Returns

String_HasJsonValue_String_UInt64_Assertion

HasJsonValue(IAssertionSource<JsonElement>, string, bool, string?, string?)

Generated extension method for HasJsonValue

public static JsonElement_HasJsonValue_String_Bool_Assertion HasJsonValue(this IAssertionSource<JsonElement> source, string path, bool expected, string? pathExpression = null, string? expectedExpression = null)

Parameters

source IAssertionSource<JsonElement>
path string
expected bool
pathExpression string
expectedExpression string

Returns

JsonElement_HasJsonValue_String_Bool_Assertion

HasJsonValue(IAssertionSource<JsonElement>, string, double, string?, string?)

Generated extension method for HasJsonValue

public static JsonElement_HasJsonValue_String_Double_Assertion HasJsonValue(this IAssertionSource<JsonElement> source, string path, double expected, string? pathExpression = null, string? expectedExpression = null)

Parameters

source IAssertionSource<JsonElement>
path string
expected double
pathExpression string
expectedExpression string

Returns

JsonElement_HasJsonValue_String_Double_Assertion

HasJsonValue(IAssertionSource<JsonElement>, string, int, string?, string?)

Generated extension method for HasJsonValue

public static JsonElement_HasJsonValue_String_Int_Assertion HasJsonValue(this IAssertionSource<JsonElement> source, string path, int expected, string? pathExpression = null, string? expectedExpression = null)

Parameters

source IAssertionSource<JsonElement>
path string
expected int
pathExpression string
expectedExpression string

Returns

JsonElement_HasJsonValue_String_Int_Assertion

HasJsonValue(IAssertionSource<JsonElement>, string, long, string?, string?)

Generated extension method for HasJsonValue

public static JsonElement_HasJsonValue_String_Long_Assertion HasJsonValue(this IAssertionSource<JsonElement> source, string path, long expected, string? pathExpression = null, string? expectedExpression = null)

Parameters

source IAssertionSource<JsonElement>
path string
expected long
pathExpression string
expectedExpression string

Returns

JsonElement_HasJsonValue_String_Long_Assertion

HasJsonValue(IAssertionSource<JsonElement>, string, string, string?, string?)

Generated extension method for HasJsonValue

public static JsonElement_HasJsonValue_String_String_Assertion HasJsonValue(this IAssertionSource<JsonElement> source, string path, string expected, string? pathExpression = null, string? expectedExpression = null)

Parameters

source IAssertionSource<JsonElement>
path string
expected string
pathExpression string
expectedExpression string

Returns

JsonElement_HasJsonValue_String_String_Assertion

HasJsonValue(IAssertionSource<JsonElement>, string, uint, string?, string?)

Generated extension method for HasJsonValue

public static JsonElement_HasJsonValue_String_UInt32_Assertion HasJsonValue(this IAssertionSource<JsonElement> source, string path, uint expected, string? pathExpression = null, string? expectedExpression = null)

Parameters

source IAssertionSource<JsonElement>
path string
expected uint
pathExpression string
expectedExpression string

Returns

JsonElement_HasJsonValue_String_UInt32_Assertion

HasJsonValue(IAssertionSource<JsonElement>, string, ulong, string?, string?)

Generated extension method for HasJsonValue

public static JsonElement_HasJsonValue_String_UInt64_Assertion HasJsonValue(this IAssertionSource<JsonElement> source, string path, ulong expected, string? pathExpression = null, string? expectedExpression = null)

Parameters

source IAssertionSource<JsonElement>
path string
expected ulong
pathExpression string
expectedExpression string

Returns

JsonElement_HasJsonValue_String_UInt64_Assertion

HasJsonValueMatching(IAssertionSource<string>, string, Func<JsonElement, bool>, string?, string?)

Generated extension method for HasJsonValueMatching

public static String_HasJsonValueMatching_String_FuncJsonElementBool_Assertion HasJsonValueMatching(this IAssertionSource<string> source, string path, Func<JsonElement, bool> predicate, string? pathExpression = null, string? predicateExpression = null)

Parameters

source IAssertionSource<string>
path string
predicate Func<JsonElement, bool>
pathExpression string
predicateExpression string

Returns

String_HasJsonValueMatching_String_FuncJsonElementBool_Assertion

HasJsonValueMatching(IAssertionSource<JsonElement>, string, Func<JsonElement, bool>, string?, string?)

Generated extension method for HasJsonValueMatching

public static JsonElement_HasJsonValueMatching_String_FuncJsonElementBool_Assertion HasJsonValueMatching(this IAssertionSource<JsonElement> source, string path, Func<JsonElement, bool> predicate, string? pathExpression = null, string? predicateExpression = null)

Parameters

source IAssertionSource<JsonElement>
path string
predicate Func<JsonElement, bool>
pathExpression string
predicateExpression string

Returns

JsonElement_HasJsonValueMatching_String_FuncJsonElementBool_Assertion

HasJsonValueOneOf(IAssertionSource<string>, string, double[], string?, string?)

Generated extension method for HasJsonValueOneOf

public static String_HasJsonValueOneOf_String_DoubleArray_Assertion HasJsonValueOneOf(this IAssertionSource<string> source, string path, double[] candidates, string? pathExpression = null, string? candidatesExpression = null)

Parameters

source IAssertionSource<string>
path string
candidates double[]
pathExpression string
candidatesExpression string

Returns

String_HasJsonValueOneOf_String_DoubleArray_Assertion

HasJsonValueOneOf(IAssertionSource<string>, string, int[], string?, string?)

Generated extension method for HasJsonValueOneOf

public static String_HasJsonValueOneOf_String_IntArray_Assertion HasJsonValueOneOf(this IAssertionSource<string> source, string path, int[] candidates, string? pathExpression = null, string? candidatesExpression = null)

Parameters

source IAssertionSource<string>
path string
candidates int[]
pathExpression string
candidatesExpression string

Returns

String_HasJsonValueOneOf_String_IntArray_Assertion

HasJsonValueOneOf(IAssertionSource<string>, string, long[], string?, string?)

Generated extension method for HasJsonValueOneOf

public static String_HasJsonValueOneOf_String_LongArray_Assertion HasJsonValueOneOf(this IAssertionSource<string> source, string path, long[] candidates, string? pathExpression = null, string? candidatesExpression = null)

Parameters

source IAssertionSource<string>
path string
candidates long[]
pathExpression string
candidatesExpression string

Returns

String_HasJsonValueOneOf_String_LongArray_Assertion

HasJsonValueOneOf(IAssertionSource<string>, string, string[], string?, string?)

Generated extension method for HasJsonValueOneOf

public static String_HasJsonValueOneOf_String_StringArray_Assertion HasJsonValueOneOf(this IAssertionSource<string> source, string path, string[] candidates, string? pathExpression = null, string? candidatesExpression = null)

Parameters

source IAssertionSource<string>
path string
candidates string[]
pathExpression string
candidatesExpression string

Returns

String_HasJsonValueOneOf_String_StringArray_Assertion

HasJsonValueOneOf(IAssertionSource<string>, string, uint[], string?, string?)

Generated extension method for HasJsonValueOneOf

public static String_HasJsonValueOneOf_String_UInt32Array_Assertion HasJsonValueOneOf(this IAssertionSource<string> source, string path, uint[] candidates, string? pathExpression = null, string? candidatesExpression = null)

Parameters

source IAssertionSource<string>
path string
candidates uint[]
pathExpression string
candidatesExpression string

Returns

String_HasJsonValueOneOf_String_UInt32Array_Assertion

HasJsonValueOneOf(IAssertionSource<string>, string, ulong[], string?, string?)

Generated extension method for HasJsonValueOneOf

public static String_HasJsonValueOneOf_String_UInt64Array_Assertion HasJsonValueOneOf(this IAssertionSource<string> source, string path, ulong[] candidates, string? pathExpression = null, string? candidatesExpression = null)

Parameters

source IAssertionSource<string>
path string
candidates ulong[]
pathExpression string
candidatesExpression string

Returns

String_HasJsonValueOneOf_String_UInt64Array_Assertion

HasJsonValueOneOf(IAssertionSource<JsonElement>, string, double[], string?, string?)

Generated extension method for HasJsonValueOneOf

public static JsonElement_HasJsonValueOneOf_String_DoubleArray_Assertion HasJsonValueOneOf(this IAssertionSource<JsonElement> source, string path, double[] candidates, string? pathExpression = null, string? candidatesExpression = null)

Parameters

source IAssertionSource<JsonElement>
path string
candidates double[]
pathExpression string
candidatesExpression string

Returns

JsonElement_HasJsonValueOneOf_String_DoubleArray_Assertion

HasJsonValueOneOf(IAssertionSource<JsonElement>, string, int[], string?, string?)

Generated extension method for HasJsonValueOneOf

public static JsonElement_HasJsonValueOneOf_String_IntArray_Assertion HasJsonValueOneOf(this IAssertionSource<JsonElement> source, string path, int[] candidates, string? pathExpression = null, string? candidatesExpression = null)

Parameters

source IAssertionSource<JsonElement>
path string
candidates int[]
pathExpression string
candidatesExpression string

Returns

JsonElement_HasJsonValueOneOf_String_IntArray_Assertion

HasJsonValueOneOf(IAssertionSource<JsonElement>, string, long[], string?, string?)

Generated extension method for HasJsonValueOneOf

public static JsonElement_HasJsonValueOneOf_String_LongArray_Assertion HasJsonValueOneOf(this IAssertionSource<JsonElement> source, string path, long[] candidates, string? pathExpression = null, string? candidatesExpression = null)

Parameters

source IAssertionSource<JsonElement>
path string
candidates long[]
pathExpression string
candidatesExpression string

Returns

JsonElement_HasJsonValueOneOf_String_LongArray_Assertion

HasJsonValueOneOf(IAssertionSource<JsonElement>, string, string[], string?, string?)

Generated extension method for HasJsonValueOneOf

public static JsonElement_HasJsonValueOneOf_String_StringArray_Assertion HasJsonValueOneOf(this IAssertionSource<JsonElement> source, string path, string[] candidates, string? pathExpression = null, string? candidatesExpression = null)

Parameters

source IAssertionSource<JsonElement>
path string
candidates string[]
pathExpression string
candidatesExpression string

Returns

JsonElement_HasJsonValueOneOf_String_StringArray_Assertion

HasJsonValueOneOf(IAssertionSource<JsonElement>, string, uint[], string?, string?)

Generated extension method for HasJsonValueOneOf

public static JsonElement_HasJsonValueOneOf_String_UInt32Array_Assertion HasJsonValueOneOf(this IAssertionSource<JsonElement> source, string path, uint[] candidates, string? pathExpression = null, string? candidatesExpression = null)

Parameters

source IAssertionSource<JsonElement>
path string
candidates uint[]
pathExpression string
candidatesExpression string

Returns

JsonElement_HasJsonValueOneOf_String_UInt32Array_Assertion

HasJsonValueOneOf(IAssertionSource<JsonElement>, string, ulong[], string?, string?)

Generated extension method for HasJsonValueOneOf

public static JsonElement_HasJsonValueOneOf_String_UInt64Array_Assertion HasJsonValueOneOf(this IAssertionSource<JsonElement> source, string path, ulong[] candidates, string? pathExpression = null, string? candidatesExpression = null)

Parameters

source IAssertionSource<JsonElement>
path string
candidates ulong[]
pathExpression string
candidatesExpression string

Returns

JsonElement_HasJsonValueOneOf_String_UInt64Array_Assertion

HasJsonValueParsableAs<T>(IAssertionSource<string>, string, string?)

Generated extension method for HasJsonValueParsableAs

[UnconditionalSuppressMessage("Trimming", "IL2091", Justification = "Generic type parameter is only used for property access, not instantiation")]
public static String_HasJsonValueParsableAs_String_Assertion<T> HasJsonValueParsableAs<T>(this IAssertionSource<string> source, string path, string? pathExpression = null) where T : IParsable<T>

Parameters

source IAssertionSource<string>
path string
pathExpression string

Returns

String_HasJsonValueParsableAs_String_Assertion<T>

Type Parameters

T

HasJsonValueParsableAs<T>(IAssertionSource<JsonElement>, string, string?)

Generated extension method for HasJsonValueParsableAs

[UnconditionalSuppressMessage("Trimming", "IL2091", Justification = "Generic type parameter is only used for property access, not instantiation")]
public static JsonElement_HasJsonValueParsableAs_String_Assertion<T> HasJsonValueParsableAs<T>(this IAssertionSource<JsonElement> source, string path, string? pathExpression = null) where T : IParsable<T>

Parameters

source IAssertionSource<JsonElement>
path string
pathExpression string

Returns

JsonElement_HasJsonValueParsableAs_String_Assertion<T>

Type Parameters

T