public void FootnoteReferenceDisplayedTest() { // First footnote of Jude is in 1:1 IStFootnote footnote = (IStFootnote)m_Jude.FootnotesOS[4]; m_scr.DisplayFootnoteReference = true; m_footnoteView.RefreshDisplay(); ITsString displayedTss = m_footnoteView.GetDisplayedTextForFootnote(1, 4, footnote); Assert.AreEqual(5, displayedTss.RunCount); Assert.AreEqual(2, displayedTss.get_RunAt(2)); AssertEx.RunIsCorrect(displayedTss, 2, "1:1 ", ScrStyleNames.FootnoteTargetRef, Cache.DefaultVernWs); }
public void FootnoteReferenceDisplayedTest_BridgeRTL() { m_scr.DisplayFootnoteReference = true; m_footnoteView.RefreshDisplay(); Application.DoEvents(); IStFootnote footnote = (IStFootnote)m_genesis.FootnotesOS[0]; ITsString displayedTss = m_footnoteView.GetDisplayedTextForFootnote(0, 0, footnote); Assert.AreEqual(5, displayedTss.RunCount); Assert.AreEqual(2, displayedTss.get_RunAt(2)); Assert.AreEqual(13, displayedTss.get_RunText(2).Length); AssertEx.RunIsCorrect(displayedTss, 2, "12" + '\u200f' + ":" + '\u200f' + "13" + '\u200f' + "-" + '\u200f' + "14" + " ", ScrStyleNames.FootnoteTargetRef, Cache.DefaultVernWs); }