assertTrue(select == null || select.length == 0);
return;
}
assertTrue(select.length >= 1);
IModelElement modelElement = select[0];
for (int i = 1; i < select.length; i++) {
assertEquals(modelElement.getElementName(), select[i].getElementName());
assertEquals(modelElement.getParent(), select[i].getParent());
}
while(true) {
assertNotNull(modelElement);
if(modelElement.getElementType() == IModelElement.SOURCE_MODULE) {
assertTrue(defunit == null);
break;
}
assertEquals(defunit.getName(), modelElement.getElementName());
defunit = NodeUtil.getOuterDefUnit(defunit);
modelElement = modelElement.getParent();
}
}