Example #1
0
        public void LaunchTest()
        {
            Common.Testing = true;
            PublicationInformation projInfo = new PublicationInformation();

            projInfo.DefaultXhtmlFileWithPath = _testFiles.Copy("sena3-imba.xhtml");
            projInfo.DefaultCssFileWithPath   = _testFiles.Copy("sena3-imba.css");
            projInfo.IsLexiconSectionExist    = true;
            projInfo.ProjectInputType         = "Dictionary";
            Launch(projInfo);
            Assert.True(File.Exists(_testFiles.Output("DfM copyright notice.txt")));
            TextFileAssert.AreEqual(_testFiles.Expected("main.txt"), _testFiles.Output("main.txt"), "main.txt");
        }
Example #2
0
        public void UpdateAssemblyVersionTest()
        {
            var outFile = _tf.Copy("GlobalAssemblyInfo.cs");

            UpdateVersion(_tf.Output(null), "1.16.2.5900");
            Assert.True(Regex.Match(FileData.Get(outFile), @"1\.16\.2\.5900").Success);
        }
Example #3
0
        public void XhtmlTest()
        {
            Pdf    target   = new Pdf(_tf.Copy("T1.xhtml"), _tf.Copy("T1.css"));
            string expected = _tf.Output("T1.xhtml");
            string actual   = target.Xhtml;

            Assert.AreEqual(expected, actual);
        }