assertTrue(group.getShapeAt(0) instanceof IText);
assertEquals("\\itshape coucou", ((IText)group.getShapeAt(0)).getText()); //$NON-NLS-1$
}
@Test public void test_itshape2() throws ParseException {
IGroup group = parser.parsePSTCode("\\itshape {coucou} {haha}").get(); //$NON-NLS-1$
assertEquals(2, group.size());
assertTrue(group.getShapeAt(0) instanceof IText);
assertEquals("\\it coucou", ((IText)group.getShapeAt(0)).getText()); //$NON-NLS-1$
assertTrue(group.getShapeAt(1) instanceof IText);
assertEquals("\\it haha", ((IText)group.getShapeAt(1)).getText()); //$NON-NLS-1$
}