public void Should_Install_Tools_Referenced_By_Scripts() { // Given var fixture = new ScriptProcessorFixture(); fixture.GivenToolFilesAreDownloaded(); // When fixture.InstallTools(); // Then fixture.Installer.Received(1).InstallPackage( Arg.Is <NuGetPackage>(package => package.PackageId == "Tool" && package.Source == "http://example.com"), Arg.Any <DirectoryPath>()); }