コード例 #1
0
        UpdatePackagesAction CreateUpdatePackagesActionWithPackages(params IPackageFromRepository[] packages)
        {
            UpdatePackagesAction action = CreateUpdatePackagesAction();

            action.AddPackages(packages);
            return(action);
        }
コード例 #2
0
        public void GetUpdatePackagesOperations_ActionPassed_ActionPassedToPackageManager()
        {
            CreateProject();
            CreateUpdatePackagesAction();
            var expectedPackages = new FakePackage[] { new FakePackage("Test") };

            updatePackagesAction.AddPackages(expectedPackages);

            project.GetUpdatePackagesOperations(updatePackagesAction.Packages, updatePackagesAction);

            Assert.AreEqual(updatePackagesAction, fakePackageManager.SettingsPassedToGetUpdatePackageOperations);
            Assert.AreEqual(expectedPackages, fakePackageManager.PackagesPassedToGetUpdatePackageOperations);
        }