コード例 #1
0
        public void ShouldThrowIfProcessHasANonZeroExitCode()
        {
            // Given
            var fixture = new NewmanFixture();

            fixture.GivenProcessExitsWithCode(1);

            // When
            var action = new Action(() => fixture.Run());

            // Then
            action.ShouldThrow <CakeException>()
            .WithMessage("Newman: Process returned an error (exit code 1).");
        }