Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 public void EnumAsString()
 {
     var p = new EnumFieldParser();
     var r = p.Parse(XmlUtils.CreateNode("str", "One"), typeof(Numbers));
     Assert.IsInstanceOfType(typeof(Numbers), r);
 }