Skip to content

Commit

Permalink
Fix #11. Piping of projects
Browse files Browse the repository at this point in the history
  • Loading branch information
danliu committed Feb 8, 2015
1 parent daf7f1e commit 1a04aa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
4 changes: 2 additions & 2 deletions test/EndToEnd/tests/GetPackageTest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function Test-GetPackageWithUpdatesAcceptsSourceName {
Assert-AreEqual 2 $packages.Count
}

function Test-GetPackageAcceptsAllAsSourceName {
function GetPackageAcceptsAllAsSourceName {
# Act
$p = @(Get-Package -Filter elmah -ListAvailable -Source 'All')

Expand All @@ -86,7 +86,7 @@ function Test-GetPackageAcceptsRelativePathSource {
pushd

# Act
cd $context.TestRoot
cd $context.TestRoot
$p = @(Get-Package -ListAvailable -Source '..\')

# Assert
Expand Down
19 changes: 1 addition & 18 deletions test/EndToEnd/vs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -161,24 +161,7 @@ function New-Project {
$project = Get-Project "$destPath\"
}

# Currently, $project is of type NuGetProject, so get the dte project object from the project name
foreach($dteProject in $dte.Solution.Projects) {
if($dteProject.Name -eq $ProjectName) {
return $dteProject
}
}

# At this point, we could not find a matching project. This may be because it is a website
if ($TemplateName -eq "EmptyWeb")
{
foreach($dteProject in $dte.Solution.Projects) {
if($ProjectName.StartsWith($dteProject.Name)) {
return $dteProject
}
}
}

return $null
$project
}

function Get-SolutionFolderPathRecursive([parameter(mandatory=$true)]$solutionFolder) {
Expand Down

0 comments on commit 1a04aa8

Please sign in to comment.