コード例 #1
0
        FakePackage AddPackageToProjectManagerLocalRepository(string id, string version)
        {
            FakePackage package = FakePackage.CreatePackageWithVersion(id, version);

            fakeSolution.AddPackageToActiveProjectLocalRepository(package);
            return(package);
        }
        public void ReadPackages_OnePackageInLocalRepository_ProjectIsNotCreatedByBackgroundThread()
        {
            CreateSolution();
            solution.AddPackageToActiveProjectLocalRepository(new FakePackage());
            CreateViewModel(solution);
            viewModel.ReadPackages();

            solution.FakeActiveProject = null;
            CompleteReadPackagesTask();

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