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