public void Should_Throw_If_NuGet_Executable_Was_Not_Found() { // Given var fixture = new NuGetSetProxyFixture(); fixture.GivenDefaultToolDoNotExist(); // When var result = Record.Exception(() => fixture.Run()); // Then Assert.IsCakeException(result, "NuGet: Could not locate executable."); }