// Check we have the right number of sheets
Slide[] slides = ssRichC.getSlides();
assertEquals(14, slides.length);
// Check the number of text runs on interesting sheets
Slide slideThreeC = ssRichC.getSlides()[2];
Slide slideSevenC = ssRichC.getSlides()[6];
assertEquals(3, slideThreeC.getTextRuns().length);
assertEquals(5, slideSevenC.getTextRuns().length);
// On slide three, we should have:
// TR:
// You are an important supplier of various items that I need
// .
// TR:
// Source: Internal focus groups
// TR:
// Illustrative Example
// .
TextRun[] s3tr = slideThreeC.getTextRuns();
RichTextRun[] s3rtr0 = s3tr[0].getRichTextRuns();
RichTextRun[] s3rtr1 = s3tr[1].getRichTextRuns();
RichTextRun[] s3rtr2 = s3tr[2].getRichTextRuns();
assertEquals(2, s3rtr0.length);
assertEquals(1, s3rtr1.length);
assertEquals(2, s3rtr2.length);
assertEquals("You are an important supplier of various items that I need", s3rtr0[0].getText());
assertEquals("", s3rtr0[1].getText());
assertEquals("Source: Internal focus groups", s3rtr1[0].getText());
assertEquals("Illustrative Example", s3rtr2[0].getText());
assertEquals("", s3rtr2[1].getText());
assertTrue(s3rtr0[0]._isParagraphStyleShared());
assertTrue(s3rtr0[1]._isParagraphStyleShared());
assertFalse(s3rtr1[0]._isParagraphStyleShared());
assertTrue(s3rtr2[0]._isParagraphStyleShared());
assertTrue(s3rtr2[1]._isParagraphStyleShared());
assertFalse(s3rtr0[0]._isCharacterStyleShared());
assertFalse(s3rtr0[1]._isCharacterStyleShared());
assertFalse(s3rtr1[0]._isCharacterStyleShared());
assertFalse(s3rtr2[0]._isCharacterStyleShared());
assertFalse(s3rtr2[1]._isCharacterStyleShared());
// On slide seven, we have:
// TR:
// (text)
// TR:
// <ps>(text a)</ps><ps>(text a)(text b)</ps>
// TR:
// (text)
TextRun[] s7tr = slideSevenC.getTextRuns();
RichTextRun[] s7rtr0 = s7tr[0].getRichTextRuns();
RichTextRun[] s7rtr1 = s7tr[1].getRichTextRuns();
RichTextRun[] s7rtr2 = s7tr[2].getRichTextRuns();
assertEquals(1, s7rtr0.length);