public void Should_Register_Installed_Tools_With_The_Tool_Service() { // Given var fixture = new ScriptProcessorFixture(); fixture.GivenFilesWillBeInstalled(); // When fixture.InstallTools(); // Then fixture.Tools.Received(1).RegisterFile( Arg.Is <FilePath>(path => path.FullPath == "/Working/Bin/Temp.dll")); }
public void Should_Install_Tools_Referenced_By_Scripts() { // Given var fixture = new ScriptProcessorFixture(); fixture.GivenFilesWillBeInstalled(); // When fixture.InstallTools(); // Then fixture.Installer.Received(1).Install( Arg.Is <PackageReference>(package => package.OriginalString == "custom:?package=tool"), Arg.Is <PackageType>(type => type == PackageType.Tool), Arg.Is <DirectoryPath>(path => path.FullPath == "/Working/Bin")); }