예제 #1
0
        private string GetOutputFromTheApp(string[] args)
        {
            var fakeConsoleOutput = new StringWriter();

            Console.SetOut(fakeConsoleOutput);
            RateCalculator.Main(args);
            return(fakeConsoleOutput.ToString());
        }