protected void SetUp() { _stylesXML = new InStyles(); _storyXML = new InStory(); _testFolderPath = PathPart.Bin(Environment.CurrentDirectory, "/InDesignConvert/TestFiles"); _outputPath = Common.PathCombine(_testFolderPath, "output"); _outputStyles = Common.PathCombine(_outputPath, "Resources"); _outputSpread = Common.PathCombine(_outputPath, "Spreads"); projInfo.TempOutputFolder = _outputPath; _cssProperty = new Dictionary <string, Dictionary <string, string> >(); _cssTree = new CssTree(); _inputCSS1 = Common.DirectoryPathReplace(_testFolderPath + "/input/Page1.css"); _inputCSS2 = Common.DirectoryPathReplace(_testFolderPath + "/input/Page2.css"); _facingPages.Add("Spread_1.xml"); _facingPages.Add("Spread_2.xml"); _facingPages.Add("Spread_3.xml"); _singlePages.AddRange(_facingPages); _singlePages.Add("Spread_4.xml"); _singlePages.Add("Spread_5.xml"); _columnClass.Add("t1"); _columnClass.Add("t2"); _columnClass.Add("t3"); }
protected void SetUp() { Common.Testing = true; //_styleName = new Styles(); //_util = new Utility(); _projInfo = new PublicationInformation(); _progressBar = new ProgressBar(); string testPath = PathPart.Bin(Environment.CurrentDirectory, "/OpenOfficeConvert/TestFiles"); _inputPath = Common.PathCombine(testPath, "input"); _outputPath = Common.PathCombine(testPath, "output"); _expectedPath = Common.PathCombine(testPath, "expected"); _expectedlinuxPath = Common.PathCombine(testPath, "expectedlinux"); Common.DeleteDirectory(_outputPath); Directory.CreateDirectory(_outputPath); FolderTree.Copy(FileInput("Pictures"), FileOutput("Pictures")); _projInfo.ProgressBar = _progressBar; _projInfo.OutputExtension = "odt"; _projInfo.ProjectInputType = "Dictionary"; _projInfo.IsFrontMatterEnabled = false; _projInfo.FinalOutput = "odt"; Common.SupportFolder = ""; Common.ProgInstall = PathPart.Bin(Environment.CurrentDirectory, "/../../DistFIles"); Common.ProgBase = PathPart.Bin(Environment.CurrentDirectory, "/../../DistFiles"); // for masterDocument Common.UseAfterBeforeProcess = false; _styleFile = "styles.xml"; _contentFile = "content.xml"; _isLinux = Common.IsUnixOS(); if (!_isLinux) { LoadParam("Dictionary", "false"); } }
protected void SetUp() { Common.ProgInstall = PathPart.Bin(Environment.CurrentDirectory, @"/../../DistFiles"); Common.SupportFolder = ""; Common.ProgBase = Common.ProgInstall; Common.Testing = true; _projInfo = new PublicationInformation(); string testPath = PathPart.Bin(Environment.CurrentDirectory, "/GoBibleConvert/TestFiles"); _inputPath = Common.PathCombine(testPath, "Input"); _outputPath = Common.PathCombine(testPath, "output"); string pathwayDirectory = Common.AssemblyPath; string styleSettingFile = Common.PathCombine(pathwayDirectory, "StyleSettings.xml"); if (!File.Exists(styleSettingFile)) { styleSettingFile = Path.GetDirectoryName(Common.AssemblyPath); styleSettingFile = Common.PathCombine(styleSettingFile, "StyleSettings.xml"); } Common.Testing = true; ValidateXMLVersion(styleSettingFile); InputType = "Scripture"; Common.ProgInstall = pathwayDirectory; Param.LoadSettings(); Param.SetValue(Param.InputType, InputType); Param.LoadSettings(); }
protected void SetUpAll() { Common.Testing = true; Common.ProgInstall = PathPart.Bin(Environment.CurrentDirectory, @"/../../DistFiles"); Common.SupportFolder = ""; Common.ProgBase = Common.ProgInstall; _projInfo = new PublicationInformation(); _testFolderPath = PathPart.Bin(Environment.CurrentDirectory, "/OpenOfficeConvert/TestFiles"); _inputPath = Common.PathCombine(_testFolderPath, "input"); _outputPath = Common.PathCombine(_testFolderPath, "output"); if (Directory.Exists(_outputPath)) { Directory.Delete(_outputPath, true); } Directory.CreateDirectory(_outputPath); _projInfo.ProjectPath = _testFolderPath; _projInfo.OutputExtension = "odt"; string pathwayDirectory = Path.GetDirectoryName(Common.AssemblyPath); string styleSettingFile = Common.PathCombine(pathwayDirectory, "StyleSettings.xml"); ValidateXMLVersion(styleSettingFile); Common.ProgInstall = pathwayDirectory; Param.LoadSettings(); Param.SetValue(Param.InputType, "Scripture"); Param.LoadSettings(); }
protected void SetUp() { string currentFolder = PathPart.Bin(Environment.CurrentDirectory, "/CssParser/TestFiles"); _inpPath = Common.PathCombine(currentFolder, "gramInput"); _expPath = Common.PathCombine(currentFolder, "gramExpect"); _outPath = Common.PathCombine(currentFolder, "gramOutput"); }
protected void SetUp() { CommonTestMethod.DisableDebugAsserts(); string currentFolder = PathPart.Bin(Environment.CurrentDirectory, "/CssDialog/TestFiles"); _inputBasePath = Common.PathCombine(currentFolder, "Input"); _expectBasePath = Common.PathCombine(currentFolder, "Expected"); }
protected void SetUp() { _cssTree = new CssTree(); _stylesXML = new InStyles(); _cssProperty = new Dictionary <string, Dictionary <string, string> >(); _testFolderPath = PathPart.Bin(Environment.CurrentDirectory, "/InDesignConvert/TestFiles"); _outputPath = Common.PathCombine(_testFolderPath, "output"); _outputResourcePath = Common.PathCombine(_outputPath, "Resources"); }
public void FontFamily9() { _input.Name = "font-family"; _input.StringValue = "dummyfont, fantasy"; _makeProperty.PsSupportPath = PathPart.Bin(Environment.CurrentDirectory, "/../../DistFiles"); _output = _makeProperty.CreateProperty(_input); _expected.Clear(); _expected.Add("font-family", "Modern"); Assert.IsTrue(CompareDictionary(), CompareMessage()); }
protected void SetUp() { _graphicXML = new InGraphic(); _testFolderPath = PathPart.Bin(Environment.CurrentDirectory, "/InDesignConvert/TestFiles"); ClassProperty = _expected; //Note: All Reference address initialized here _output = Common.PathCombine(_testFolderPath, "output"); _cssProperty = new Dictionary <string, Dictionary <string, string> >(); _cssTree = new CssTree(); }
protected void SetUp() { _stylesXML = new InStyles(); _storyXML = new InStory(); _testFolderPath = PathPart.Bin(Environment.CurrentDirectory, "/InDesignConvert/TestFiles"); ClassProperty = _expected; //Note: All Reference address initialized here _outputPath = Common.PathCombine(_testFolderPath, "output"); _outputStyles = Common.PathCombine(_outputPath, "Resources"); projInfo.TempOutputFolder = _outputPath; _cssProperty = new Dictionary <string, Dictionary <string, string> >(); _cssTree = new CssTree(); }
protected void SetUp() { _stylesXML = new InStyles(); _expectedList = new ArrayList(); _designmapXML = new InDesignMap(); _idAllClass = new Dictionary <string, Dictionary <string, string> >(); _testFolderPath = PathPart.Bin(Environment.CurrentDirectory, "/InDesignConvert/TestFiles"); ClassProperty = _expected; _outputPath = Common.PathCombine(_testFolderPath, "output"); _outputStyles = Common.PathCombine(_outputPath, "Resources"); _outputMasterSpreads = Common.PathCombine(_outputPath, "MasterSpreads"); _cssProperty = new Dictionary <string, Dictionary <string, string> >(); _cssTree = new CssTree(); }
protected void SetUp() { Common.Testing = true; string testPath = PathPart.Bin(Environment.CurrentDirectory, "/GoBibleConvert/TestFiles"); _inputPath = Common.PathCombine(testPath, "Input"); _outputPath = Common.PathCombine(testPath, "output"); _expectedPath = Common.PathCombine(testPath, "Expected"); if (!Directory.Exists(_outputPath)) { Directory.CreateDirectory(_outputPath); Thread.Sleep(1000); } }
protected void SetUpAll() { Common.Testing = true; _projInfo = new PublicationInformation(); _testFolderPath = PathPart.Bin(Environment.CurrentDirectory, "/PdfConvert/TestFiles"); _inputPath = Common.PathCombine(_testFolderPath, "input"); _outputPath = Common.PathCombine(_testFolderPath, "output"); _expectedPath = Common.PathCombine(_testFolderPath, "Expected"); const bool recursive = true; if (Directory.Exists(_outputPath)) { Directory.Delete(_outputPath, recursive); } Directory.CreateDirectory(_outputPath); _projInfo.ProjectPath = _testFolderPath; Common.SupportFolder = ""; }
protected void Initialize() { string testPath = PathPart.Bin(Environment.CurrentDirectory, "/ConfigurationTool/TestFiles"); _inputBasePath = Common.PathCombine(testPath, "input"); _outputBasePath = Common.PathCombine(testPath, "Output"); if (Directory.Exists(_outputBasePath)) { DirectoryInfo di = new DirectoryInfo(_outputBasePath); Common.CleanDirectory(di); } Directory.CreateDirectory(_outputBasePath); _supportSource = PathPart.Bin(Environment.CurrentDirectory, "/../../DistFiles"); string folderName = "Graphic"; CopyFolderSupportToIO(folderName); folderName = "Icons"; CopyFolderSupportToIO(folderName); }
protected void SetUp() { Common.Testing = true; _configTool = new ConfigurationTool(); string testPath = PathPart.Bin(Environment.CurrentDirectory, "/ConfigurationTool/TestFiles"); _inputBasePath = Common.PathCombine(testPath, "input"); _expectBasePath = Common.PathCombine(testPath, "Expected"); _outputBasePath = Common.PathCombine(testPath, "Output"); if (Directory.Exists(_outputBasePath)) { DirectoryInfo di = new DirectoryInfo(_outputBasePath); Common.CleanDirectory(di); } Directory.CreateDirectory(_outputBasePath); _supportSource = Common.DirectoryPathReplace(testPath + "/../../../../DistFiles"); string fileName = "DictionaryStyleSettings.xml"; CopyFilesSupportToIO(fileName); fileName = "ScriptureStyleSettings.xml"; CopyFilesSupportToIO(fileName); fileName = "StyleSettings.xml"; CopyFilesSupportToIO(fileName); fileName = "StyleSettings.xsd"; CopyFilesSupportToIO(fileName); string folderName = "Styles"; CopyFolderSupportToIO(folderName); LoadParam(); }
protected void SetUp() { _testFolderPath = PathPart.Bin(Environment.CurrentDirectory, "/InDesignConvert/TestFiles"); _inputCSS1 = Common.PathCombine(_testFolderPath, "input/MasterSpread.css"); _stylesXML = new InStyles(); _masterSpreadXML = new InMasterSpread(); _idAllClass = new Dictionary <string, Dictionary <string, string> >(); _testFolderPath = PathPart.Bin(Environment.CurrentDirectory, "/InDesignConvert/TestFiles"); ClassProperty = _expected; _outputPath = Common.PathCombine(_testFolderPath, "output"); _outputSpread = Common.PathCombine(_outputPath, "MasterSpreads"); _outputStyle = Common.PathCombine(_outputPath, "Resources"); _outputStory = Common.PathCombine(_outputPath, "Stories"); _cssProperty = new Dictionary <string, Dictionary <string, string> >(); _cssTree = new CssTree(); _listofMasterPages = new ArrayList { "MasterSpread_First.xml", "MasterSpread_All.xml", "MasterSpread_Left.xml", "MasterSpread_Right.xml" }; }
public void Setup() { Common.ProgInstall = PathPart.Bin(Environment.CurrentDirectory, @"/../../DistFiles"); Common.SupportFolder = ""; Common.ProgBase = Common.ProgInstall; string testPath = PathPart.Bin(Environment.CurrentDirectory, "/ParatextSupport/TestFiles"); _inputPath = Common.PathCombine(testPath, "Input"); _outputPath = Common.PathCombine(testPath, "output"); _expectedPath = Common.PathCombine(testPath, "Expected"); Common.CallerSetting?.Dispose(); DataCreator.Creator = DataCreator.CreatorProgram.Unknown; Common.CallerSetting = new CallerSetting { SettingsFullPath = FileInput("testDb.ssf") }; if (!Directory.Exists(_outputPath)) { Directory.CreateDirectory(_outputPath); while (!Directory.Exists(_outputPath)) { Thread.Sleep(1000); } } }
protected void SetUp() { _output = new Dictionary <string, Dictionary <string, string> >(); _expected = new Dictionary <string, Dictionary <string, string> >(); _testFolderPath = PathPart.Bin(Environment.CurrentDirectory, "/CssParser/TestFiles/cssInput"); }
protected void SetUp() { testPath = PathPart.Bin(Environment.CurrentDirectory, "/CssParser/TestFiles/cssInput"); }
protected void SetUp() { string currentFolder = PathPart.Bin(Environment.CurrentDirectory, "/CssParser/TestFiles"); _inpPath = Common.PathCombine(currentFolder, "../../../../DistFiles/Styles"); }
protected void SetUp() { _InsertMacro = new InInsertMacro(); _cssTree = new CssTree(); _testFolderPath = PathPart.Bin(Environment.CurrentDirectory, "/InDesignConvert/TestFiles"); }