Пример #1
0
        public void ECMA2YamlConverter_HappyPath()
        {
            string testDirectory     = Path.GetFullPath("..\\..\\..\\..\\test");
            string xmlDirectory      = Path.Combine(testDirectory, "xml");
            string outputDirectory   = Path.Combine(testDirectory, "_yml_UnitTests_ECMA2YamlConverter_HappyPath");
            string sourceMapFilePath = Path.Combine(testDirectory, "_yml_UnitTests_ECMA2YamlConverter_HappyPath\\.sourcemap.json");

            ECMA2YamlConverter.Run(
                xmlDirectory,
                outputDirectory,
                logWriter: item => Console.WriteLine(item.File),
                logContentBaseDirectory: testDirectory + "\\abc",
                sourceMapFilePath: sourceMapFilePath);
        }
Пример #2
0
        public void ECMA2YamlConverter_HappyPath_UWPMode()
        {
            string testDirectory     = Path.GetFullPath("..\\..\\..\\..\\test");
            string xmlDirectory      = Path.Combine(testDirectory, "xml");
            string outputDirectory   = Path.Combine(testDirectory, "_yml_UnitTests_ECMA2YamlConverter_HappyPath_UWPMode");
            string sourceMapFilePath = Path.Combine(testDirectory, "_yml_UnitTests_ECMA2YamlConverter_HappyPath_UWPMode\\.sourcemap.json");

            ECMA2YamlConverter.Run(
                xmlDirectory,
                outputDirectory,
                logWriter: item => Console.WriteLine(item.File),
                logContentBaseDirectory: testDirectory + "\\abc",
                sourceMapFilePath: sourceMapFilePath, publicGitRepoUrl: "http://git/test", publicGitBranch: "develop", config: new ECMA2YamlRepoConfig()
            {
                UWP = true,
            });
        }