public override IPackage Push(IPackageFile file) { if (Exists && file.Exists()) { file.Copy(System.IO.Path.Combine(Path, file.IdAndVersion() + ".nupkg")); } return(Get(file.ToPackageDependency())); }
public void can_check_if_Exists() { nunit.Exists().ShouldBeTrue(); fluent.Exists().ShouldBeTrue(); new Nupkg("/i/dont/exist.nupkg").Exists.ShouldBeFalse(); }