public void TestInputOk() { using var tmpdir = new TemporaryDirectory(); string path = Path.Join(tmpdir.Path, "SomeProgram.cs"); System.IO.File.WriteAllText(path, "123\n"); using var consoleCapture = new ConsoleCapture(); int exitCode = Program.MainWithCode(new[] { "--inputs", path, "--verbose" }); string nl = Environment.NewLine; Assert.AreEqual(0, exitCode); Assert.AreEqual( $"OK {path}{nl}", consoleCapture.Output()); }