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