public void ConsoleCapture_Next() { using var console = new ConsoleCapture(); Console.Write("First"); var first = console.NextString(); Console.Write("Second"); var second = console.NextString(); Assert.AreEqual("First", first); Assert.AreEqual("Second", second); }