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); }
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); }
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 }