示例#1
0
        public void NewGuidewordStyleTest()
        {
            _projInfo.ProjectInputType = "Dictionary";
            const string file      = "NewGuidewordStyle";
            DateTime     startTime = DateTime.Now;

            string styleOutput     = GetStyleOutput(file);
            string contentExpected = Common.PathCombine(_expectedPath, file + "content.xml");

            XmlAssert.Ignore(styleOutput, "//office:font-face-decls", new Dictionary <string, string> {
                { "office", "urn:oasis:names:tc:opendocument:xmlns:office:1.0" }
            });
            XmlAssert.AreEqual(contentExpected, _projInfo.TempOutputFolder, file + " in content.xml");
        }
示例#2
0
        public void RunningHeaderNoneTest()
        {
            _projInfo.ProjectInputType = "Scripture";
            const string file      = "RunningHeaderNone";
            DateTime     startTime = DateTime.Now;

            Common.UseAfterBeforeProcess = false;
            string styleOutput = GetStyleOutput(file);

            string styleExpected   = Common.PathCombine(_expectedPath, file + "styles.xml");
            string contentExpected = Common.PathCombine(_expectedPath, file + "content.xml");

            XmlAssert.Ignore(styleOutput, "//office:font-face-decls", new Dictionary <string, string> {
                { "office", "urn:oasis:names:tc:opendocument:xmlns:office:1.0" }
            });
            XmlAssert.AreEqual(styleExpected, styleOutput, file + " in styles.xml");
            XmlAssert.AreEqual(contentExpected, _projInfo.TempOutputFolder, file + " in content.xml");
        }