public void EnumAsString() { var p = new EnumFieldParser(); var xml = new XDocument(); xml.Add(new XElement("str", "One")); var r = p.Parse(xml.Root, typeof(Numbers)); Assert.IsInstanceOfType(typeof(Numbers), r); }
public void EnumAsString() { var p = new EnumFieldParser(); var r = p.Parse(XmlUtils.CreateNode("str", "One"), typeof(Numbers)); Assert.IsInstanceOfType(typeof(Numbers), r); }