public void HandleScriptureTest() { var target = new ExportTheWord(); var actual = target.Handle("Scripture"); Assert.IsTrue(actual); }
public void HandleDictionaryTest() { var target = new ExportTheWord(); var actual = target.Handle("Dictionary"); Assert.IsFalse(actual); }
public void ExportTypeTest() { var target = new ExportTheWord(); var actual = target.ExportType; Assert.AreEqual("theWord/MySword", actual); }
public void LaunchTest() { Common.Testing = true; const string exportType = "theWord/mySword"; var publicationInformation = new PublicationInformation(); var target = new ExportTheWord(); CommonTestMethod.DisableDebugAsserts(); bool actual = target.Launch(exportType, publicationInformation); Assert.False(actual); CommonTestMethod.EnableDebugAsserts(); }
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 ExportTheWordConstructorTest() { var target = new ExportTheWord(); Assert.IsNotNull(target); }
public void ExportNullTest() { var target = new ExportTheWord(); const PublicationInformation projInfo = null; var actual = target.Export(projInfo); Assert.IsFalse(actual); }