public void Convert_FormatException_Test(string number) { Assert.Throws <FormatException>(() => IntConvert.Convert(number)); }
public void Convert_OverflowException_Test(string number) { Assert.Throws <OverflowException>(() => IntConvert.Convert(number)); }
public void Convert_StringToInt_Test(string number, int expectedResult) { var result = IntConvert.Convert(number); Assert.That(result, Is.EqualTo(expectedResult)); }