public void filter_a_floated_result_that_is_older_than_the_newest_in_the_feed() { var result = NugetResult.For(new StubNuget("Test", "1.0.0.0")); theFilter.Filter(theSolution, new Dependency("Test"), result); result.Nuget.Version.ShouldEqual(new SemanticVersion("1.2.0.12")); }
public void filter_a_fixed_result_that_is_older_than_the_newest_in_the_feed_does_nothing() { var result = NugetResult.For(new StubNuget("Test", "1.0.0.0")); theFilter.Filter(theSolution, new Dependency("Test", "1.0.0.0", UpdateMode.Fixed), result); result.Nuget.Version.ShouldEqual(new SemanticVersion("1.0.0.0")); }
public NugetResult Find(Solution solution, Dependency dependency) { if (_throw) { throw new InvalidOperationException("Thrown"); } return(NugetResult.For(_nuget)); }
private NugetResult findLocal(Dependency dependency, SearchLocation location) { var result = new NugetResult(); if (location == SearchLocation.Local && _solution.HasLocalCopy(dependency.Name)) { try { // Try to hit the local zip and read it. Mostly for testing but it'll detect a corrupted local package as well result.Nuget = _solution.LocalNuget(dependency.Name); result.Nuget.Dependencies().ToList(); RippleLog.Debug(dependency.Name + " already installed"); } catch { result.Nuget = null; } } return(result); }
public void Filter(Solution solution, Dependency dependency, NugetResult result) { // no-op }