public void Should_Throw_If_Chocolatey_Executable_Was_Not_Found() { // Given var fixture = new ChocolateySourcesFixture(); fixture.GivenDefaultToolDoNotExist(); // When var result = Record.Exception(() => fixture.DisableSource()); // Then Assert.IsCakeException(result, "Chocolatey: Could not locate executable."); }