public void Search_RepositoryHasThreePackagesWithSameIdButSearchTermsMatchNoPackageIds_ReturnsNoPackages()
        {
            CreateViewModel();

            var package1 = new FakePackage()
            {
                Id          = "Test",
                Description = "",
                Version     = new Version(0, 1, 0, 0)
            };
            var package2 = new FakePackage()
            {
                Id          = "Test",
                Description = "",
                Version     = new Version(0, 2, 0, 0)
            };
            var package3 = new FakePackage()
            {
                Id          = "Test",
                Description = "",
                Version     = new Version(0, 3, 0, 0)
            };
            var packages = new FakePackage[] {
                package1, package2, package3
            };

            packageManagementService.FakeActivePackageRepository.FakePackages.AddRange(packages);

            viewModel.ReadPackages();
            CompleteReadPackagesTask();

            ClearReadPackagesTasks();
            viewModel.SearchTerms = "NotAMatch";
            viewModel.Search();
            CompleteReadPackagesTask();

            Assert.AreEqual(0, viewModel.PackageViewModels.Count);
        }
        public void Search_RepositoryHasThreePackagesWithSameIdButSearchTermsMatchNoPackageIds_ReturnsNoPackages()
        {
            CreateViewModel();

            var package1 = new FakePackage("Test", "0.1.0.0");
            var package2 = new FakePackage("Test", "0.2.0.0");
            var package3 = new FakePackage("Test", "0.3.0.0");

            var packages = new FakePackage[] {
                package1, package2, package3
            };

            registeredPackageRepositories.FakeActiveRepository.FakePackages.AddRange(packages);

            viewModel.ReadPackages();
            CompleteReadPackagesTask();

            ClearReadPackagesTasks();
            viewModel.SearchTerms = "NotAMatch";
            viewModel.Search();
            CompleteReadPackagesTask();

            Assert.AreEqual(0, viewModel.PackageViewModels.Count);
        }