Beispiel #1
0
            public void ShouldThrowIfProcessHasANonZeroExitCode()
            {
                // Given
                WyamToolFixture fixture = new WyamToolFixture();

                fixture.GivenProcessExitsWithCode(1);

                // When, Then
                Assert.Throws <CakeException>(() => fixture.Run(), "Wyam: Process returned an error.");
            }