Example #1
0
            static string RunFizzBuzz()
            {
                var stdout = Console.Out;

                using var writer = new StringWriter();
                Console.SetOut(writer);
                FizzBuzz.Main();
                Console.SetOut(stdout);
                return(writer.ToString());
            }