Exemplo n.º 1
0
 public void ParseDecimal_WrongString(string value)
 {
     Assert.Throws <FormatException>(delegate { ParsingUtils.ParseDecimal(value); });
 }
Exemplo n.º 2
0
 public void ParseDecimal_Null()
 {
     Assert.Throws <ArgumentNullException>(delegate { ParsingUtils.ParseDecimal(null); });
 }
Exemplo n.º 3
0
 public void ParseDecimal_EmptyString()
 {
     Assert.Throws <FormatException>(delegate { ParsingUtils.ParseDecimal(""); });
 }
Exemplo n.º 4
0
 public void ParseDecimal_Standard(int ones, int fractional, string value)
 {
     Assert.AreEqual(new Tuple <int, int>(ones, fractional), ParsingUtils.ParseDecimal(value));
 }