public void Should_Use_Chocolatey_Executable_From_Tool_Path_If_Provided(string toolPath, string expected) { // Given var fixture = new ChocolateyPusherFixture(); fixture.GivenCustomToolPathExist(expected); fixture.Settings.ToolPath = toolPath; // When fixture.Push(); // Then fixture.ProcessRunner.Received(1).Start( Arg.Is <FilePath>(p => p.FullPath == expected), Arg.Any <ProcessSettings>()); }