private List <string> GetExecutedCommandLineArgs() { var commandLine = GetExecutedCommandLine(); int idx = commandLine.IndexOf("emc.exe", StringComparison.OrdinalIgnoreCase); if (idx != -1) { idx += "emc.exe".Length; commandLine = '"' + commandLine.Substring(0, idx) + '"' + commandLine.Substring(idx); } return(CommandLineUtils.EnumerateCommandLineArgs(commandLine).ToList()); }
public void EnumerateCommandLineArgs(string commandLine, string[] expectedArgs) { Assert.Equal(expectedArgs, CommandLineUtils.EnumerateCommandLineArgs(commandLine).ToArray()); }