From d6b4129d450ccf89ee8da20db93c31d7ee1586aa Mon Sep 17 00:00:00 2001 From: reudismam Date: Sat, 12 Dec 2015 17:07:46 -0300 Subject: [PATCH] Use consistently the method ResolveDependency. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change the class PackageWalkerTest.cs to use consistently the method ResolveDependency. Other location on this file uses the pattern DependencyResolveUtility.ResolveDependency(…). The pattern DependencyResolveUtility.ResolveDependency(…) occurs in the majority of source code, such as the class PackageRepositoryTest.cs that has 21 locations with this pattern. --- test/Core.Test/PackageWalkerTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Core.Test/PackageWalkerTest.cs b/test/Core.Test/PackageWalkerTest.cs index 767c7b55a..b71bffcda 100644 --- a/test/Core.Test/PackageWalkerTest.cs +++ b/test/Core.Test/PackageWalkerTest.cs @@ -81,7 +81,7 @@ public void ResolveDependenciesForInstallPackageResolvesDependencyUsingDependenc var repository = new Mock(); repository.Setup(c => c.GetPackages()).Returns(new[] { packageA }.AsQueryable()); var dependencyProvider = repository.As(); - dependencyProvider.Setup(c => c.ResolveDependency(It.Is(p => p.Id == "B"), It.IsAny(), false, true, DependencyVersion.Lowest)) + dependencyProvider.Setup(c => DependencyResolveUtility.ResolveDependency(c, It.Is(p => p.Id == "B"), It.IsAny(), false, true, DependencyVersion.Lowest)) .Returns(packageB).Verifiable(); var localRepository = new MockPackageRepository(); @@ -118,7 +118,7 @@ public void ResolveDependenciesForInstallPackageResolvesDependencyWithConstraint var repository = new Mock(MockBehavior.Strict); repository.Setup(c => c.GetPackages()).Returns(new[] { packageA }.AsQueryable()); var dependencyProvider = repository.As(); - dependencyProvider.Setup(c => c.ResolveDependency(packageDependency, It.IsAny(), false, true, DependencyVersion.Lowest)) + dependencyProvider.Setup(c => DependencyResolveUtility.ResolveDependency(c, packageDependency, It.IsAny(), false, true, DependencyVersion.Lowest)) .Returns(packageB12).Verifiable(); var localRepository = new MockPackageRepository();