public void TitleSecondaryIntoNullDest()
        {
            ITsTextProps ttpSrc = StyleUtils.CharStyleTextProps("Title Secondary", 1);

            VwInsertDiffParaResponse resp = m_draftView.OnInsertDiffParas(
                m_draftView.RootBox, null, 1,
                new ITsTextProps[] { ttpSrc }, new ITsString[] { null }, null);

            Assert.AreEqual(VwInsertDiffParaResponse.kidprFail, resp);
        }
        public void Paragraph()
        {
            ITsTextProps ttp = StyleUtils.ParaStyleTextProps("Paragraph");             // source and dest

            VwInsertDiffParaResponse resp = m_draftView.OnInsertDiffParas(
                m_draftView.RootBox, ttp, 1,
                new ITsTextProps[] { ttp }, new ITsString[] { null }, null);

            Assert.AreEqual(VwInsertDiffParaResponse.kidprDefault, resp);
        }
        public void Line1IntoParagraph()
        {
            ITsTextProps ttpDst  = StyleUtils.ParaStyleTextProps("Paragraph");
            ITsTextProps ttpSrc2 = StyleUtils.ParaStyleTextProps("Line1");

            VwInsertDiffParaResponse resp = m_draftView.OnInsertDiffParas(
                m_draftView.RootBox, ttpDst, 2, new [] { ttpDst, ttpSrc2 },
                new ITsString[] { null, null }, null);

            Assert.AreEqual(VwInsertDiffParaResponse.kidprDefault, resp);
        }
        public void ParagraphAndTitleMainIntoNullDest()
        {
            ITsTextProps ttpSrc1 = StyleUtils.ParaStyleTextProps("Paragraph");
            ITsTextProps ttpSrc2 = StyleUtils.ParaStyleTextProps("Title Main");

            VwInsertDiffParaResponse resp = m_draftView.OnInsertDiffParas(
                m_draftView.RootBox, null, 2,
                new ITsTextProps[] { ttpSrc1, ttpSrc2 }, new ITsString[] { null, null }, null);

            Assert.AreEqual(VwInsertDiffParaResponse.kidprFail, resp);
        }
        public void IntroParagraphIntoLine2()
        {
            ITsTextProps ttpSrc = StyleUtils.ParaStyleTextProps("Intro Paragraph");
            ITsTextProps ttpDst = StyleUtils.ParaStyleTextProps("Line2");

            VwInsertDiffParaResponse resp = m_draftView.OnInsertDiffParas(
                m_draftView.RootBox, ttpDst, 1,
                new ITsTextProps[] { ttpSrc }, new ITsString[] { null }, null);

            Assert.AreEqual(VwInsertDiffParaResponse.kidprFail, resp);
        }
        public void NonScrParaStyleIntoTitleMain()
        {
            ITsTextProps ttpSrc = StyleUtils.ParaStyleTextProps("Title Secondary");
            ITsTextProps ttpDst = StyleUtils.ParaStyleTextProps("Title Main");

            VwInsertDiffParaResponse resp = m_draftView.OnInsertDiffParas(
                m_draftView.RootBox, ttpDst, 1,
                new ITsTextProps[] { ttpSrc }, new ITsString[] { null }, null);

            Assert.AreEqual(VwInsertDiffParaResponse.kidprFail, resp);
        }
        public void SectionHeadIntoSectionHeadMajor()
        {
            ITsTextProps ttpSrc = StyleUtils.ParaStyleTextProps("Section Head");
            ITsTextProps ttpDst = StyleUtils.ParaStyleTextProps("Section Head Major");

            VwInsertDiffParaResponse resp = m_draftView.OnInsertDiffParas(
                m_draftView.RootBox, ttpDst, 1,
                new ITsTextProps[] { ttpSrc }, new ITsString[] { null }, null);

            Assert.AreEqual(VwInsertDiffParaResponse.kidprDefault, resp);
        }
Ejemplo n.º 8
0
        public void TitleSecondary()
        {
            CheckDisposed();

            ITsString    tssParas = null;
            ITsTextProps ttpSrc1  = StyleUtils.CharStyleTextProps("Title Secondary", 1);

            VwInsertDiffParaResponse resp = m_draftView.OnInsertDiffParas(
                m_draftView.RootBox, null, 1,
                new ITsTextProps[] { ttpSrc1 }, new ITsString[] { tssParas }, null);

            Assert.AreEqual(VwInsertDiffParaResponse.kidprFail, resp);
        }
Ejemplo n.º 9
0
        public void IntroParagraphIntoLine2()
        {
            CheckDisposed();

            ITsString    tssParas = null;
            ITsTextProps ttpSrc1  = StyleUtils.CharStyleTextProps("Intro Paragraph", 1);
            ITsTextProps ttpSrc2  = StyleUtils.CharStyleTextProps("Line2", 1);

            VwInsertDiffParaResponse resp = m_draftView.OnInsertDiffParas(
                m_draftView.RootBox, ttpSrc2, 1,
                new ITsTextProps[] { ttpSrc1 }, new ITsString[] { tssParas }, null);

            Assert.AreEqual(VwInsertDiffParaResponse.kidprFail, resp);
        }
Ejemplo n.º 10
0
        public void SectionHeadIntoSectionHeadMajor()
        {
            CheckDisposed();

            ITsString    tssParas = null;
            ITsTextProps ttpSrc1  = StyleUtils.CharStyleTextProps("Section Head", 1);
            ITsTextProps ttpSrc2  = StyleUtils.CharStyleTextProps("Section Head Major", 1);

            VwInsertDiffParaResponse resp = m_draftView.OnInsertDiffParas(
                m_draftView.RootBox, ttpSrc2, 1,
                new ITsTextProps[] { ttpSrc1 }, new ITsString[] { tssParas }, null);

            Assert.AreEqual(VwInsertDiffParaResponse.kidprDefault, resp);
        }
Ejemplo n.º 11
0
        public void CitationLine1IntoParagraph()
        {
            CheckDisposed();

            ITsString    tssParas = null;
            ITsTextProps ttpSrc1  = StyleUtils.ParaStyleTextProps("Paragraph");
            ITsTextProps ttpSrc2  = StyleUtils.ParaStyleTextProps("Citation Line1");

            VwInsertDiffParaResponse resp = m_draftView.OnInsertDiffParas(
                m_draftView.RootBox, ttpSrc1, 2,
                new ITsTextProps[] { ttpSrc1, ttpSrc2 }, new ITsString[] { tssParas, tssParas }, null);

            Assert.AreEqual(VwInsertDiffParaResponse.kidprDefault, resp);
        }
Ejemplo n.º 12
0
        public void ParagraphAndTitleMain()
        {
            CheckDisposed();

            ITsString    tssParas = null;
            ITsTextProps ttpSrc1  = StyleUtils.ParaStyleTextProps("Paragraph");
            ITsTextProps ttpSrc2  = StyleUtils.ParaStyleTextProps("Title Main");

            VwInsertDiffParaResponse resp = m_draftView.OnInsertDiffParas(
                m_draftView.RootBox, null, 2,
                new ITsTextProps[] { ttpSrc1, ttpSrc2 }, new ITsString[] { tssParas, tssParas }, null);

            Assert.AreEqual(VwInsertDiffParaResponse.kidprFail, resp);
        }