Beispiel #1
0
        public void Should_serialize_and_deserialize()
        {
            var value = new EnvelopeHeaders(JsonValue.Object().Add("Key1", 123));

            var deserialized = value.SerializeAndDeserialize();

            CompareHeaders(deserialized, value);
        }
Beispiel #2
0
        public void Should_serialize_and_deserialize()
        {
            var source = new EnvelopeHeaders
            {
                ["key1"] = JsonValue.Create(13)
            };

            var deserialized = source.SerializeAndDeserialize();

            CompareHeaders(deserialized, source);
        }