public void ExportTest() { Common.Testing = true; var projInfo = new PublicationInformation(); var vrsPath = PathPart.Bin(Environment.CurrentDirectory, @"/../theWordConvert"); VrsName = Path.Combine(vrsPath, "vrs.xml"); projInfo.DefaultXhtmlFileWithPath = Path.Combine(_outputPath, "name.xhtml"); //Directory name used as output folder Ssf = Path.Combine(_inputPath, "nkoNT.ssf"); // Ssf file used for Paratext settings const string usxFolder = "USX"; //USX folder must be present for input FolderTree.Copy(Path.Combine(_inputPath, usxFolder), Path.Combine(_outputPath, usxFolder)); var target = new ExportTheWord(); bool actual = target.Export(projInfo); Assert.True(actual); }
public void ExportNullTest() { var target = new ExportTheWord(); const PublicationInformation projInfo = null; var actual = target.Export(projInfo); Assert.IsFalse(actual); }