public void IgnoresZipPackages()
        {
            File.Copy(GetFixtureResouce("Samples", "Acme.Core.1.0.0.0-bugfix.zip"), Path.Combine(rootDir, "Acme.Core.1.0.0.0-bugfix.zip"));
            var downloadPath = Path.Combine(rootDir, "DummyFile.nupkg");

            Assert.Throws <Exception>(() =>
                                      NuGetFileSystemDownloader.DownloadPackage("Acme.Core", new SemanticVersion("1.0.0.0-bugfix"), new Uri(rootDir), downloadPath)
                                      );
            FileAssert.DoesNotExist(downloadPath);
        }
        public void FindsAndCopiesNugetPackageWithNugetFileFormat()
        {
            var originalPath = Path.Combine(rootDir, "Acme.Core.1.0.0.0-bugfix.nupkg");

            File.Copy(GetFixtureResouce("Samples", "Acme.Core.1.0.0.0-bugfix.nupkg"), originalPath);
            var downloadPath = Path.Combine(rootDir, "DummyFile.nupkg");

            NuGetFileSystemDownloader.DownloadPackage("Acme.Core", new SemanticVersion("1.0.0.0-bugfix"), new Uri(rootDir), downloadPath);
            Assert.AreEqual(HashCalculator.Hash(originalPath), HashCalculator.Hash(downloadPath), "Expected source file to have been copied");
        }