public void AddTestG1() { _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 newAction = new KAction() { Label = "New" }; var newItem = _manager.AddAction(newAction, ((ActionGridItem)_collection[0])); //Arbre attendu : // 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 // New 1.5 _actions = _manager.GetActionsSortedByWBS(); InitItemsCollectionAssertions(); AssertAction(_g1, 0, "1"); AssertAction(_t1, 1, "1.1"); AssertAction(_t2, 1, "1.2"); AssertAction(_t21, 2, "1.2.1"); AssertAction(_t22, 2, "1.2.2"); AssertAction(_t3, 1, "1.3"); AssertAction(_t31, 2, "1.3.1"); AssertAction(_t4, 1, "1.4"); AssertAction(newAction, 0, "2"); EndItemsCollectionAssertions(); }