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