Ejemplo n.º 1
0
 public static IPackageInfo Find(this ILookup<string, IPackageInfo> packages, WrapDependency dependency)
 {
     if (!packages.Contains(dependency.Name))
         return null;
     return (from package in packages[dependency.Name]
             where package.Version != null && dependency.IsFulfilledBy(package.Version)
             orderby package.Version descending
             select package).FirstOrDefault();
 }
Ejemplo n.º 2
0
 public IPackageInfo Find(WrapDependency dependency)
 {
     return PackagesByName.Find(dependency);
 }
 public void sonic_is_changed_to_super_sonic()
 {
     var sonic = new WrapDependency { Name = "sonic" };
     wrapOverride.Apply(sonic);
     sonic.Name.ShouldBe("super-sonic");
 }
Ejemplo n.º 4
0
 bool DependencyNotFound(WrapDependency dependency)
 {
     Log.LogError("The dependency on wrap '{0}' was not found.", dependency);
     return false;
 }
 public void tails_is_still_tails()
 {
     var tails = new WrapDependency { Name = "tails" };
     wrapOverride.Apply(tails);
     tails.Name.ShouldBe("tails");
 }