Пример #1
0
    // Newtonsoft.Json serializer

    public static T PassThroughNewtonsoftJsonSerializer <T>(this T value, ITestOutputHelper?output = null)
    {
        var s    = new NewtonsoftJsonSerializer(NewtonsoftJsonSettings).ToTyped <T>();
        var json = s.Write(value);

        output?.WriteLine($"NewtonsoftJsonSerializer: {json}");
        return(s.Read(json));
    }