public void GivenIHaveEnteredAIntoTheNumberConverter(String numberToConvert) { try { _numberToWords = new NumberConverter(numberToConvert); } catch (Exception e) { this.e = e.Message; } }
public void GivenIHaveEnteredIntoTheConverter(string numberToConvert) { _numberToWords = new NumberConverter(numberToConvert); Assert.That(_numberToWords._number, Is.EqualTo(int.Parse(numberToConvert))); }