public void Should_Throw_If_Has_A_Non_Zero_Exit_Code() { // Given var fixture = new AppleSimulatorListRuntimesFixture(); fixture.GivenProcessExitsWithCode(1); // When fixture.Invoking(x => x.Run()) // Then .Should().Throw <CakeException>() .WithMessage("AppleSimulator: Process returned an error (exit code 1)."); }