Example #1
0
            public void Should_Throw_If_Process_Has_A_Non_Zero_Exit_Code()
            {
                // Given
                var fixture = new ChocolateyPusherFixture();

                fixture.GivenProcessReturnError();

                // When
                var result = Record.Exception(() => fixture.Push());

                // Then
                Assert.IsCakeException(result, "Chocolatey: Process returned an error.");
            }