public void Should_Throw_If_Fastlane_Pilot_Runner_Was_Not_Found() { // Given var fixture = new FastlanePilotFixture(); fixture.GivenDefaultToolDoNotExist(); // When var result = Record.Exception(() => fixture.Run()); // Then Assert.IsType <CakeException>(result); Assert.Equal("fastlane: Could not locate executable.", result?.Message); }