public void should_convert_from_ppt_to_pdf() { var from = Environment.CurrentDirectory + @"\TestFiles\\智慧市政综合指挥平台.pptx"; var to = Environment.CurrentDirectory + @"\TestFiles\\智慧市政综合指挥平台pptx.pdf"; Assert.AreEqual(ErrorMessages.Success, _pptToPdfConverter.Convert(from, to)); Assert.IsTrue(File.Exists(to)); }
public void should_convert_from_ppt_to_pdf() { PPTToPdfConverter _converter = new PPTToPdfConverter(); Assert.AreEqual(ErrorMessages.Success, _converter.Convert(Environment.CurrentDirectory + @"\TestFiles\\智慧市政综合指挥平台.pptx", Environment.CurrentDirectory + @"\TestFiles\\智慧市政综合指挥平台pptx.pdf")); Assert.IsTrue(File.Exists(Environment.CurrentDirectory + @"\TestFiles\智慧市政综合指挥平台pptx.pdf")); }