static void Main(string[] args) { NumberConverter converter = new NumberConverter(); int numberToConvert; StartLogging(); do { if (UI.GetNumberFromConsole(out numberToConvert)) { Console.WriteLine(NumberConverter.GetStringRepresentation(numberToConvert)); } }while (UI.IsContinued()); FinishLogging(); }
int.MaxValue)] //2147483647 public void NumberConverterTest(string expected, int number) { Assert.Equal(expected, NumberConverter.GetStringRepresentation(number)); }