public void HappyPath(string inputString, int expectedOutput) { var test = new ConvertToWholeNumber(); var result = test.DoConversion(inputString); Assert.AreEqual(expectedOutput, result); Assert.IsInstanceOf <int>(result); }
public void InvalidStringInput(string inputString) { var test = new ConvertToWholeNumber(); Assert.Throws <System.FormatException>(() => test.DoConversion(inputString)); }