static string RunFizzBuzz() { var stdout = Console.Out; using var writer = new StringWriter(); Console.SetOut(writer); FizzBuzz.Main(); Console.SetOut(stdout); return(writer.ToString()); }
static string RunFizzBuzz() { var stdout = Console.Out; using var writer = new StringWriter(); Console.SetOut(writer); FizzBuzz.Main(); Console.SetOut(stdout); return(writer.ToString()); }