public void DeserializeTest() { YamlConverter yamlConverter = new YamlConverter(); var order = yamlConverter.Deserialize <Order>(document); Assert.IsNotNull(order); }
public void DeserializeTest1() { YamlConverter yamlConverter = new YamlConverter(); var addrss = new Address() { City = "City", State = "State", Street = "Street" }; var value = yamlConverter.Serialize(addrss); var actual = yamlConverter.Deserialize(value, typeof(Address)); Assert.AreEqual("City", (actual as Address).City); }