public void HasPackageScriptsToRun_OnePackageInOperationsHasInitPowerShellScript_ReturnsTrue() { CreateAction(); action.PackageId = "Test"; AddInstallOperationWithFile(@"tools\init.ps1"); bool hasPackageScripts = action.HasPackageScriptsToRun(); Assert.IsTrue(hasPackageScripts); }
public void HasPackageScriptsToRun_OnePackageInOperationsHasInitPowerShellScript_ReturnsTrue() { CreateAction(); fakeProject.AddFakePackageToSourceRepository("Test"); action.PackageId = "Test"; AddInstallOperationWithFile(@"tools\init.ps1".ToNativePath()); bool hasPackageScripts = action.HasPackageScriptsToRun(); Assert.IsTrue(hasPackageScripts); }