void CreateAction()
		{
			fakeProject = new FakePackageManagementProject();
			fakeScriptFactory = new FakePackageScriptFactory();
			fakeScriptRunner = new FakePackageScriptRunner();
			action = new RunPackageScriptsAction(fakeProject, fakeScriptRunner, fakeScriptFactory);
		}
		public void Execute_PackageScriptRunnerSet_RunPackageScriptsActionCreatedUsingPackageScriptRunner()
		{
			CreateAction();
			var expectedRunner = new FakePackageScriptRunner();
			action.PackageScriptRunner = expectedRunner;
			action.Execute();
			
			IPackageScriptRunner actualRunner = action.ScriptRunnerPassedToCreateRunPackageScriptsAction;
			
			Assert.AreEqual(expectedRunner, actualRunner);
		}
		void CreateAction()
		{
			fakeProject = new FakePackageManagementProject();
			fakeScriptFactory = new FakePackageScriptFactory();
			fakeScriptRunner = new FakePackageScriptRunner();
			globalMSBuildProjectCollection = MockRepository.GenerateStub<IGlobalMSBuildProjectCollection>();
			action = new RunPackageScriptsAction(
				fakeProject,
				fakeScriptRunner,
				fakeScriptFactory,
				globalMSBuildProjectCollection);
		}
		public void CreateActions_OnePackageInSolutionWithOneProjectAndScriptRunnerIsSet_UpdateActionUsesSameScriptRunner()
		{
			CreateUpdateAllPackagesInSolution();
			AddProjectToSolution("MyProject");
			AddPackageToSolution("Test");
			var expectedRunner = new FakePackageScriptRunner();
			updateAllPackagesInSolution.PackageScriptRunner = expectedRunner;
			CallCreateActions();
			
			IPackageScriptRunner runner = FirstUpdateAction.PackageScriptRunner;
			
			Assert.AreEqual(expectedRunner, runner);
		}
        public void CreateActions_OnePackageInProjectAndPackageScriptRunnerSet_ActionPackageScriptRunnerIsSet()
        {
            CreateUpdateAllPackagesInProject();
            AddPackageToProject("Test");
            var expectedRunner = new FakePackageScriptRunner();
            updateAllPackagesInProject.PackageScriptRunner = expectedRunner;

            CallCreateActions();

            IPackageScriptRunner runner = FirstUpdateAction.PackageScriptRunner;

            Assert.AreEqual(expectedRunner, runner);
        }