Esempio n. 1
0
 public void DecimalFieldParser_overflow()
 {
     var p = new DecimalFieldParser();
     var xml = new XDocument();
     xml.Add(new XElement("item", "6.66E53"));
     var value = (decimal)p.Parse(xml.Root, typeof(decimal));
 }
Esempio n. 2
0
 public void DecimalFieldParser()
 {
     var p = new DecimalFieldParser();
     var xml = new XDocument();
     xml.Add(new XElement("item", "6.66E13"));
     var value = (decimal) p.Parse(xml.Root, typeof(decimal));
     Assert.AreEqual(66600000000000m, value);
 }