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