public void run() { while (true) { Console.Write("Input: "); var s = Console.ReadLine(); try { _numberConverter = new NumberConverter(s); Console.WriteLine("Result: \"" + _numberConverter.GetNumberToWord() + "\""); }catch (Exception e) { Console.WriteLine("Result: \"Not Suported\""); } } }
public void run() { while (true) { Console.Write("Input: "); var s = Console.ReadLine(); try { _numberConverter = new NumberConverter(s); Console.WriteLine("Result: \"" + _numberConverter.GetNumberToWord()+"\""); }catch(Exception e) { Console.WriteLine("Result: \"Not Suported\"" ); } } }
public void ThenTheResultShouldBeOneOnTheScreen(String words) { Assert.That(_numberToWords.GetNumberToWord().Substring(0, _numberToWords.GetNumberToWord().Length - 1), Is.EqualTo(words)); }