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