Example #1
0
 public void Convert_FormatException_Test(string number)
 {
     Assert.Throws <FormatException>(() => IntConvert.Convert(number));
 }
Example #2
0
 public void Convert_OverflowException_Test(string number)
 {
     Assert.Throws <OverflowException>(() => IntConvert.Convert(number));
 }
Example #3
0
        public void Convert_StringToInt_Test(string number, int expectedResult)
        {
            var result = IntConvert.Convert(number);

            Assert.That(result, Is.EqualTo(expectedResult));
        }