Ejemplo n.º 1
0
        public void figure()
        {
            UsxToSFM     _usxToSfm = new UsxToSFM();
            const string file      = "figure";

            string input    = Common.PathCombine(_inputPath, file + ".usx");
            string output   = Common.PathCombine(_outputPath, file + ".sfm");
            string expected = Common.PathCombine(_expectedPath, file + ".sfm");

            _usxToSfm.ConvertUsxToSFM(input, output);

            FileAssert.AreEqual(expected, output, file + " test fails");
        }
Ejemplo n.º 2
0
        public void para()
        {
            UsxToSFM     _usxToSfm = new UsxToSFM();
            const string file      = "para";

            string input    = Common.PathCombine(_inputPath, file + ".usx");
            string output   = Common.PathCombine(_outputPath, file + ".sfm");
            string expected = Common.PathCombine(_expectedPath, file + ".sfm");

            Common.BookNameCollection.Clear();
            Common.BookNameTag = string.Empty;

            _usxToSfm.ConvertUsxToSFM(input, output);

            TextFileAssert.AreEqual(expected, output, file + " test fails");
            Assert.AreEqual(1, Common.BookNameCollection.Count);
            Assert.AreEqual("h", Common.BookNameTag);
        }