Ejemplo n.º 1
0
        public void TestSetup()
        {
            _tbi     = new TestBuildEngine();
            _testDir = Path.Combine(Path.GetTempPath(), GetType().Name);
            _task    = new NormalizeLocales {
                BuildEngine = _tbi, L10nsDirectory = _testDir
            };

            TaskTestUtils.RecreateDirectory(_testDir);
        }
Ejemplo n.º 2
0
        public void IntegrationTest()
        {
            // clean and create the output directory
            const string outputDir = @"C:\WorkingFiles\XliffGoldEtic";

            TaskTestUtils.RecreateDirectory(outputDir);

            Assert.True(new GoldEticToXliff
            {
                SourceXml      = @"..\..\..\..\DistFiles\Templates\GOLDEtic.xml",
                XliffOutputDir = outputDir
            }.Execute());

            var outputFiles = Directory.GetFiles(outputDir).Where(f => !f.EndsWith(".en.xlf")).ToArray();

            Assert.True(new XliffToGoldEtic
            {
                XliffSourceFiles = outputFiles,
                OutputXml        = Path.Combine(outputDir, "..", "GOLDEticRoundtripped.xml")
            }.Execute());
        }