public async Task WaitForExitAsyncTest() { var notepadById = Process.GetProcessById(_notepad.Id); await notepadById.WaitForExitAsync(); } }