Пример #1
0
 public void BuildApplicationTest()
 {
     ExportGoBible target = new ExportGoBible();
     string goBibleCreatorPath = _inputPath; 
     target.BuildApplication(goBibleCreatorPath);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
Пример #2
0
 public void CreateCollectionsTextFileTest()
 {
     ExportGoBible target = new ExportGoBible();
     string xx = Common.GetApplicationPath();
     string exportGoBiblePath = xx; 
     target.CreateCollectionsTextFile(exportGoBiblePath);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
Пример #3
0
 public void GoBibleCreatorTempDirectoryTest()
 {
     ExportGoBible target = new ExportGoBible(); // TODO: Initialize to an appropriate value
     string goBibleFullPath = string.Empty; // TODO: Initialize to an appropriate value
     string expected = string.Empty; // TODO: Initialize to an appropriate value
     string actual;
     actual = target.GoBibleCreatorTempDirectory(goBibleFullPath);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Пример #4
0
 public void HandleTest()
 {
     ExportGoBible target = new ExportGoBible(); // TODO: Initialize to an appropriate value
     string inputDataType = string.Empty; // TODO: Initialize to an appropriate value
     bool expected = false; // TODO: Initialize to an appropriate value
     bool actual;
     actual = target.Handle(inputDataType);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Пример #5
0
 public void GetProjectNameTest()
 {
     ExportGoBible target = new ExportGoBible(); // TODO: Initialize to an appropriate value
     IPublicationInformation projInfo = null; // TODO: Initialize to an appropriate value
     string expected = string.Empty; // TODO: Initialize to an appropriate value
     string actual;
     actual = target.GetProjectName(projInfo);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Пример #6
0
 public void GetInfoTest()
 {
     ExportGoBible target = new ExportGoBible(); // TODO: Initialize to an appropriate value
     string metadataValue = string.Empty; // TODO: Initialize to an appropriate value
     string expected = string.Empty; // TODO: Initialize to an appropriate value
     string actual;
     actual = target.GetInfo(metadataValue);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Пример #7
0
 public void ExportTest()
 {
     string inputSourceDirectory = FileInput("ExportGoBible");
     string outputDirectory = FileOutput("ExportGoBible");
     if(Directory.Exists(outputDirectory))
     {
         Directory.Delete(outputDirectory, true);
     }
     FolderTree.Copy(inputSourceDirectory, outputDirectory);
     Param.LoadSettings();
     _projInfo.ProjectPath = outputDirectory;
     _projInfo.ProjectInputType = "Scripture";
     _projInfo.DefaultXhtmlFileWithPath = Common.PathCombine(outputDirectory, "Go_Bible.xhtml");
     _projInfo.DefaultCssFileWithPath = Common.PathCombine(outputDirectory, "Go_Bible.css");
     
     var target = new ExportGoBible();
     const bool expectedResult = true;
     bool actual = target.Export(_projInfo);
     Assert.AreEqual(expectedResult, actual);
 }
Пример #8
0
 public void CreateRampTest()
 {
     ExportGoBible target = new ExportGoBible(); // TODO: Initialize to an appropriate value
     PublicationInformation projInfo = null; // TODO: Initialize to an appropriate value
     target.CreateRamp(projInfo);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
Пример #9
0
        private void button11_Click(object sender, EventArgs e)
        {
            if (!File.Exists(txtInputPath.Text))
            {
                MessageBox.Show("Please enter the valid XHTML path");
                return;
            }
            ExportGoBible exportGoBible = new ExportGoBible();
            PublicationInformation projInfo = new PublicationInformation();

            projInfo.ProjectPath = Path.GetDirectoryName(txtInputPath.Text);
            projInfo.DefaultXhtmlFileWithPath = txtInputPath.Text;
            projInfo.DefaultCssFileWithPath = txtCSSInput.Text;

            projInfo.ProjectFileWithPath = projInfo.ProjectPath;
            projInfo.DictionaryPath = projInfo.ProjectPath;
            exportGoBible.Export(projInfo);
        }