예제 #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>();
        }
예제 #2
0
        public void Should_Use_XCRun_Runner_From_Tool_Path_If_Provided(string toolPath, string expected)
        {
            // Given
            var fixture = new XCRunFindSimCtlFixture {
                Settings = { ToolPath = toolPath }
            };

            fixture.GivenSettingsToolPathExist();

            // When
            var result = fixture.Run();

            // Then
            result.Path.FullPath.Should().Be(expected);
        }