public void LoadPackagesSingleRepoTest()
        {
            Mock <Repository> repo_mock     = new Mock <Repository>();
            Mock <Upset>      package_dummy = new Mock <Upset>();

            repo_mock.Setup(repo => repo.ListPackages()).Returns(new Upset[] { package_dummy.Object });
            pl.LoadPackages(repo_mock.Object);
            Assert.AreEqual(new PackageRepo
            {
                Package    = package_dummy.Object,
                Repository = repo_mock.Object
            },
                            (pl as PackageListTester).GetPackages()[0]);
        }
Beispiel #2
0
        public void LoadPackageList()
        {
            PackageList pList = PackageList.Instance();

            pList.LoadPackages(Repositories, true);
        }