Esempio n. 1
0
        public void FindPrevBackTrans_SectionHeadToTitle_TitleFinished()
        {
            CheckDisposed();

            CmTranslation trans = new CmTranslation(Cache,
                                                    ((StTxtPara)m_book.TitleOA.ParagraphsOS[0]).TranslationsOC.HvoArray[0]);

            m_btDraftView.SetTransStatus(trans, BackTranslationStatus.Finished);

            m_btDraftView.SetInsertionPoint((int)ScrSection.ScrSectionTags.kflidHeading,
                                            0, 0, 0);

            m_btDraftView.CallPrevUnfinishedBackTrans();
            SelectionHelper helper = m_btDraftView.EditingHelper.CurrentSelection;

            Assert.AreEqual(0, helper.IchAnchor);
            Assert.AreEqual(0, m_btDraftView.TeEditingHelper.BookIndex);
            Assert.AreEqual(0, m_btDraftView.TeEditingHelper.SectionIndex);
            Assert.AreEqual(0, m_btDraftView.ParagraphIndex);
            Assert.IsFalse(m_btDraftView.TeEditingHelper.InBookTitle);
        }