Skip to content

Commit 8045f4c

Browse files
committed
Fix unit tests after #58.
- Moving package down in sources collection wasn't working. - Remove --no-build from Run-Tests.ps1, because we don't build whole solution in previous steps.
1 parent 1132651 commit 8045f4c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/PackageManager.NuGet/Models/NuGetPackageSourceCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public int MoveDown(IPackageSource source)
107107
{
108108
Sources.RemoveAt(index);
109109
Sources.Insert(++index, target);
110-
SavePackageSources();
110+
SavePackageSources(true);
111111
}
112112

113113
return index;

tools/Run-Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Push-Location $PSScriptRoot;
22

3-
dotnet test ..\test\PackageManager.NuGet.Tests\PackageManager.NuGet.Tests.csproj -c Release --no-build --test-adapter-path:.. --logger:Appveyor /property:Platform=AnyCPU
4-
dotnet test ..\test\PackageManager.Tests\PackageManager.Tests.csproj -c Release --no-build --test-adapter-path:.. --logger:Appveyor /property:Platform=AnyCPU
3+
dotnet test ..\test\PackageManager.NuGet.Tests\PackageManager.NuGet.Tests.csproj -c Release --test-adapter-path:.. --logger:Appveyor /property:Platform=AnyCPU
4+
dotnet test ..\test\PackageManager.Tests\PackageManager.Tests.csproj -c Release --test-adapter-path:.. --logger:Appveyor /property:Platform=AnyCPU
55

66
Pop-Location;

0 commit comments

Comments
 (0)