public static async ValueTask ExitCodeIs(this XProcess process, int expected) { using (process) { await process.WaitForExitAsync(); process.ExitCode.Is(expected, "message: " + process.Output); } }