示例#1
0
        public void DblColSeparator()
        {
            CommandLineUtilities.Option option = default(CommandLineUtilities.Option);
            option.Name  = "translateDirectory";
            option.Value = m_helloTestPath + "::" + m_worldTestPath;

            TranslateDirectoryData tdd = Args.ParseTranslatePathOption(m_pathTable, option);

            XAssert.IsTrue(tdd.FromPath.ToString(m_pathTable).EndsWith(m_helloTestPath, StringComparison.OrdinalIgnoreCase));
            XAssert.IsTrue(tdd.ToPath.ToString(m_pathTable).EndsWith(m_worldTestPath, StringComparison.OrdinalIgnoreCase));
        }
示例#2
0
        public void LessThanSeparator()
        {
            CommandLineUtilities.Option option = default(CommandLineUtilities.Option);
            option.Name  = "translateDirectory";
            option.Value = m_helloTestPath + "<" + m_worldTestPath;

            TranslateDirectoryData tdd = Args.ParseTranslatePathOption(m_pathTable, option);

            XAssert.IsTrue(tdd.FromPath.ToString(m_pathTable).EndsWith(m_helloTestPath, OperatingSystemHelper.PathComparison));
            XAssert.IsTrue(tdd.ToPath.ToString(m_pathTable).EndsWith(m_worldTestPath, OperatingSystemHelper.PathComparison));
        }