public void GroupTestImpossible() { _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 // Grouper G1 Assert.IsTrue(_manager.CanGroup(new ActionGridItem[] { (ActionGridItem)_collection[0] })); // Grouper G1 + T1 Assert.IsTrue(_manager.CanGroup(new ActionGridItem[] { (ActionGridItem)_collection[0], (ActionGridItem)_collection[1], })); // Grouper T1 Assert.IsTrue(_manager.CanGroup(new ActionGridItem[] { (ActionGridItem)_collection[1], })); // Grouper T1 + T3 Assert.IsFalse(_manager.CanGroup(new ActionGridItem[] { (ActionGridItem)_collection[1], (ActionGridItem)_collection[5], })); // Grouper T22 + T3 + T31 Assert.IsTrue(_manager.CanGroup(new ActionGridItem[] { (ActionGridItem)_collection[4], (ActionGridItem)_collection[5], (ActionGridItem)_collection[6], })); // Grouper T22 + T3 + T4 Assert.IsTrue(_manager.CanGroup(new ActionGridItem[] { (ActionGridItem)_collection[4], (ActionGridItem)_collection[5], (ActionGridItem)_collection[7], })); }