public void ParseInt_WrongString(string value) { Assert.Throws <FormatException>(delegate { ParsingUtils.ParseInt(value); }); }
public void ParseInt_EmptyString() { Assert.Throws <FormatException>(delegate { ParsingUtils.ParseInt(""); }); }
public void ParseInt_StandardPassStringsThousandsSeparator(int value, string numeral) { Assert.AreEqual(value, ParsingUtils.ParseInt(numeral)); }
public void ParseInt_Null() { Assert.Throws <ArgumentNullException>(delegate { ParsingUtils.ParseInt(null); }); }
public void ParseInt_StandardPass(int value) { Assert.AreEqual(value, ParsingUtils.ParseInt(value.ToString())); }