public void WriteObject(Boo value)
        {
            var jsonValue = value == null
                ? JsonValue.Null
                : _converter.WriteObject(value);

            jsonValue.Serialize().Should().Be(JsonConvert.SerializeObject(value));
        }
Exemple #2
0
        public void WriteObject(int value)
        {
            var jsonValue = (JsonValue)_converter.WriteObject(value);

            jsonValue.Serialize().Should().Be(JsonConvert.SerializeObject(value));
        }
Exemple #3
0
        public void WriteObject(Boo[] array)
        {
            var jsonArray = _converter.WriteObject(array);

            jsonArray.Serialize().Should().Be(JsonConvert.SerializeObject(array));
        }
Exemple #4
0
        public void WriteObject(DependencyLifetime value)
        {
            var jsonValue = (JsonValue)_converter.WriteObject(value);

            jsonValue.Serialize().Should().Be(JsonConvert.SerializeObject(value));
        }