public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code() { // Given var fixture = new GitReleaseManagerExporterFixture(); fixture.GivenProcessExitsWithCode(1); // When var result = Record.Exception(() => fixture.Run()); // Then Assert.IsCakeException(result, "GitReleaseManager: Process returned an error."); }