public void JsonToJson() { var json = new JObject(); var result = json.Adapt <JObject>(_config); result.ShouldBe(json); }
public void ToObject() { var json = new JObject { ["foo"] = "bar" }; var result = json.Adapt <Mock>(_config); result.foo.ShouldBe("bar"); }
public void ToString() { var json = new JObject { ["foo"] = "bar" }; var result = json.Adapt <string>(_config); result.ShouldContainWithoutWhitespace(@"{""foo"":""bar""}"); }