Exemple #1
0
        public void EnableDisableIterationPath_passingInNewPath_ShouldEnablePathAndThenDisablePath()
        {
            // arrange
            ProjectDetail     projectDetail    = TestConstants.TfsTeamProjectDetail;
            IIterationManager manager          = IterationManagerFactory.GetManager(projectDetail);
            string            newIterationName = GetRandomGuid();

            manager.AddNewIteration(newIterationName);

            manager.EnableIterationPath(TestConstants.TfsTeam, newIterationName, true);
            Assert.IsTrue(manager.IsIterationPathEnabled(TestConstants.TfsTeam, newIterationName), "Iteration path did not enable for team.");
            manager.DisableIterationPath(TestConstants.TfsTeam, newIterationName);
            Assert.IsFalse(manager.IsIterationPathEnabled(TestConstants.TfsTeam, newIterationName), "Iteration path did not disable for team.");
        }