public void NKOu3Book() { SfmToUsx _sfmToUsx = new SfmToUsx(); const string file = "MATNKOu3"; 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"); }
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"); }