private Model GetModel(object obj) { var ser = new YamlModelDeserializer(); var text = ser.Serialize(obj); return(new YamlModelDeserializer().Deserialize(text)); }
public void StringsThatLookLikeBoolsAreNotDeserializedAsBools() { var graph = new YamlModelDeserializer().Deserialize("A: \"true\"").Untyped as Dictionary <string, object>; ; graph["A"].Should().Be("true"); }