Exemplo n.º 1
0
        public void Should_Throw_If_Does_Not_Exist()
        {
            // Given
            var fixture = new XCRunFindSimCtlFixture();

            fixture.GivenSettingsToolPathExist();

            // When
            fixture.Invoking(x => x.Run())
            // Then
            .Should().NotThrow <CakeException>();
        }
Exemplo n.º 2
0
        public void Should_Throw_If_Has_A_Non_Zero_Exit_Code()
        {
            // Given
            var fixture = new XCRunFindSimCtlFixture();

            fixture.GivenProcessExitsWithCode(72);

            // When
            fixture.Invoking(x => x.Run())
            // Then
            .Should().Throw <CakeException>()
            .WithMessage("XcodeRun: Process returned an error (exit code 72).");
        }