Пример #1
0
        public void ProjectRemoveGitFileHeader()
        {
            string[] commands = new string[]
            {
                "-f", ProjectPath, "*.cs",
                "-r", @"^\s*//[^/]{1}[\s\S]*?$\n",
            };
            bool result = commandEngine.Excute(commands);

            Assert.AreEqual(true, result);
        }
Пример #2
0
        public void ExcuteRemoveGitFileHeader()
        {
            string[] commands = new string[]
            {
                "-f", @"D:\git-project\Castle.Core", "*.cs",
                "-r", @"^\s*//[\s\S]*?$\n",
            };
            bool result = commandEngine.Excute(commands);

            Assert.AreEqual(true, result);
        }
Пример #3
0
        static void Main(string[] args)
        {
            var commandEngine = new CommandEngine();
            var result        = commandEngine.Excute(args);

            if (result == true)
            {
                #if DEBUG
                Trace.Write("执行成功");
                #endif
                #if !DEBUG
                Console.Write("执行成功,按任意键可以退出");
                #endif
            }
            else
            {
                #if DEBUG
                Trace.Write("执行失败");
                #endif
                #if !DEBUG
                Console.Write("执行失败,按任意键可以退出");
                #endif
            }
            #if !DEBUG
            Console.ReadLine();
            #endif
        }