Run test dummy through the app host

This commit is contained in:
Tyrrrz
2023-08-07 21:55:37 +03:00
parent d2e390c691
commit c95b6c32d5
5 changed files with 19 additions and 27 deletions

View File

@@ -27,11 +27,9 @@ public class ConsoleSpecs : SpecsBase
// Can't verify our own console output, so using an external process for this test
// Arrange
var command = "Hello world" | Cli.Wrap("dotnet")
.WithArguments(a => a
.Add(Dummy.Program.Location)
.Add("console-test")
);
var command =
"Hello world" |
Cli.Wrap(Dummy.Program.FilePath).WithArguments("console-test");
// Act
var result = await command.ExecuteBufferedAsync();