public void RunTestCases(string src, string value, string expected) { var srcValue = JsonSerializer.Deserialize <JsonElement>(src); var overrideValue = JsonSerializer.Deserialize <JsonElement>(value); var result = Extension.ApplyJsonValue(srcValue, overrideValue); string text = JsonSerializer.Serialize(result); Assert.Equal(expected, text); }