Ejemplo n.º 1
0
 public void HandleScriptureTest()
 {
     var target = new ExportTheWord();
     var actual = target.Handle("Scripture");
     Assert.IsTrue(actual);
 }
Ejemplo n.º 2
0
 public void HandleDictionaryTest()
 {
     var target = new ExportTheWord();
     var actual = target.Handle("Dictionary");
     Assert.IsFalse(actual);
 }
Ejemplo n.º 3
0
 public void ExportTypeTest()
 {
     var target = new ExportTheWord();
     var actual = target.ExportType;
     Assert.AreEqual("theWord/MySword", actual);
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
 public void ExportTheWordConstructorTest()
 {
     var target = new ExportTheWord();
     Assert.IsNotNull(target);
 }
Ejemplo n.º 7
0
 public void ExportNullTest()
 {
     var target = new ExportTheWord();
     const PublicationInformation projInfo = null;
     var actual = target.Export(projInfo);
     Assert.IsFalse(actual);
 }