public void ReadObject(int?value) { var number = value == null ? JsonValue.Null : JsonValue.Number(value.Value); _converter.ReadObject(number).Should().Be(value); }
public void ReadObject(int value) { var jsonValue = JsonValue.Number(value); _converter.ReadObject(jsonValue).Should().Be(value); }
public void ReadObject(double value) { var number = JsonValue.Number(value); _converter.ReadObject(number).Should().Be(value); }
public void ReadObject(TimeSpan value) { var number = JsonValue.TimeSpan(value); _converter.ReadObject(number).Should().Be(value); }
public void ReadObject(DateTime value) { var number = JsonValue.DateTime(value); _converter.ReadObject(number).Should().Be(value); }
public void ReadObject(Boo value) { var jsonObject = _converter.Write(value); _converter.ReadObject(jsonObject).Should().BeEquivalentTo(value); }
public void ReadObject(string value) { var str = JsonValue.String(value); _converter.ReadObject(str).Should().Be(value); }
public void ReadObject(DependencyLifetime value) { var jsonValue = JsonValue.Number((int)value); _converter.ReadObject(jsonValue).Should().Be(value); }
public void ReadObject(bool value) { var jsonValue = JsonValue.Boolean(value); _converter.ReadObject(jsonValue).Should().Be(value); }