Exemple #1
0
        public async Task RunWithOutput()
        {
            using (var proc = new AsyncProcess(boots)
            {
                Command = Helpers.IsWindows ? "cmd" : "echo",
                Arguments = Helpers.IsWindows ? "/C echo test" : "test"
            }) {
                var text = await proc.RunWithOutputAsync(new CancellationToken());

                Assert.Equal("test", text.Trim());
            }
        }