コード例 #1
0
ファイル: InSpreadTest.cs プロジェクト: sillsdev/pathway
        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");
        }
コード例 #2
0
ファイル: InPreferencesTest.cs プロジェクト: sillsdev/pathway
 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");
 }
コード例 #3
0
 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();
 }
コード例 #4
0
ファイル: InDesignMapTest.cs プロジェクト: sillsdev/pathway
 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();
 }
コード例 #5
0
        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"
            };
        }