Exemple #1
0
        public void GroupTestT1T2()
        {
            _manager.RegisterInitialActions(_actions);

            //Arbre initial :
            //  G1 1
            //      T1 1.1
            //      T2 1.2
            //          T21 1.2.1
            //          T22 1.2.2
            //      T3 1.3
            //          T31 1.3.1
            //      T4 1.4

            var groupItem = _manager.Group(new ActionGridItem[]
            {
                (ActionGridItem)_collection[1],
                (ActionGridItem)_collection[2]
            });

            //Arbre attendu :
            //  G1 1
            //      GROUP 1.1
            //          T1 1.1.1
            //          T2 1.1.2
            //              T21 1.1.2.1
            //              T22 1.1.2.2
            //      T3 1.2
            //          T31 1.2.1
            //      T4 1.3

            _actions = _manager.GetActionsSortedByWBS();

            InitItemsCollectionAssertions();
            AssertAction(_g1, 0, "1");
            AssertAction(groupItem.Action, 1, "1.1");
            AssertAction(_t1, 2, "1.1.1");
            AssertAction(_t2, 2, "1.1.2");
            AssertAction(_t21, 3, "1.1.2.1");
            AssertAction(_t22, 3, "1.1.2.2");
            AssertAction(_t3, 1, "1.2");
            AssertAction(_t31, 2, "1.2.1");
            AssertAction(_t4, 1, "1.3");
            EndItemsCollectionAssertions();
        }