예제 #1
0
        public void Book()
        {
            SfmToUsx _sfmToUsx = new SfmToUsx();
            const string file = "BookOfMAT";

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

            _sfmToUsx.ConvertSFMtoUsx(input, output);

            FileAssert.AreEqual(expected, output, file + " test fails");
        }
예제 #2
0
        private void btnSfm2Usx_Click(object sender, EventArgs e)
        {
            if (!File.Exists(txtInputPath.Text))
            {
                MessageBox.Show("Please enter the valid USX file");
                return;
            }

            SfmToUsx sfMtoUsx = new SfmToUsx();
            sfMtoUsx.ConvertSFMtoUsx(txtInputPath.Text, Path.GetDirectoryName(txtInputPath.Text) + "\\output.usx");
            MessageBox.Show("Done");
        }