public void GetLatestVersionOf_FiltersReturnsNewestPackageMatchingId()
        {
            var packageOne = new NuGetPackageStub{Id = "app", Version = SemanticVersion.Parse("1.0.0.0")};
            var packageThree = new NuGetPackageStub{Id = "app", Version = SemanticVersion.Parse("1.5.0.0"), IsLatestVersion = true};
            var packageTwo = new NuGetPackageStub{Id = "app", Version = SemanticVersion.Parse("1.1.0.0")};
            _packageList.Add(packageOne);
            _packageList.Add(packageThree);
            _packageList.Add(packageTwo);

            var package = _query.GetLatestVersionOf("app", "c:\\location");

            Assert.That(package, Is.EqualTo(packageThree));
        }
        public void GetLatestVersionOf_FiltersReturnsNewestPackageMatchingId()
        {
            var packageOne = new NuGetPackageStub {
                Id = "app", Version = SemanticVersion.Parse("1.0.0.0")
            };
            var packageThree = new NuGetPackageStub {
                Id = "app", Version = SemanticVersion.Parse("1.5.0.0"), IsLatestVersion = true
            };
            var packageTwo = new NuGetPackageStub {
                Id = "app", Version = SemanticVersion.Parse("1.1.0.0")
            };

            _packageList.Add(packageOne);
            _packageList.Add(packageThree);
            _packageList.Add(packageTwo);

            var package = _query.GetLatestVersionOf("app", "c:\\location");

            Assert.That(package, Is.EqualTo(packageThree));
        }