UpdatePackagesAction CreateUpdatePackagesActionWithPackages(params IPackageFromRepository[] packages)
        {
            UpdatePackagesAction action = CreateUpdatePackagesAction();

            action.AddPackages(packages);
            return(action);
        }
Exemplo n.º 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);
        }