Example #1
0
 public void ParseInt_WrongString(string value)
 {
     Assert.Throws <FormatException>(delegate { ParsingUtils.ParseInt(value); });
 }
Example #2
0
 public void ParseInt_EmptyString()
 {
     Assert.Throws <FormatException>(delegate { ParsingUtils.ParseInt(""); });
 }
Example #3
0
 public void ParseInt_StandardPassStringsThousandsSeparator(int value, string numeral)
 {
     Assert.AreEqual(value, ParsingUtils.ParseInt(numeral));
 }
Example #4
0
 public void ParseInt_Null()
 {
     Assert.Throws <ArgumentNullException>(delegate { ParsingUtils.ParseInt(null); });
 }
Example #5
0
 public void ParseInt_StandardPass(int value)
 {
     Assert.AreEqual(value, ParsingUtils.ParseInt(value.ToString()));
 }