Esempio n. 1
0
        public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
        {
            // Given
            var fixture = new VagrantFixture(r => r.Up());

            fixture.GivenProcessExitsWithCode(1);
            var action = new Action(() => fixture.Run());

            action.ShouldThrow <CakeException>()
            .WithMessage("Vagrant by Hashicorp: Process returned an error (exit code 1).");
        }