コード例 #1
0
        public void CanExtract_Exe_Name()
        {
            const string cmdLine = "wpa -i c:\\temp\\otherfile.etl";
            string       exe     = TraceControlViewModel.ExtractExecName(cmdLine);

            Assert.AreEqual("wpa", exe);
        }
コード例 #2
0
        public void Can_Extract_Exe_Name_With_Quotation_Marks()
        {
            const string cmdLine = "\"C:\\program files\\wpa.exe\" -i c:\\temp\\otherfile.etl";
            string       exe     = TraceControlViewModel.ExtractExecName(cmdLine);

            Assert.AreEqual("\"C:\\program files\\wpa.exe\"", exe);
            Console.WriteLine($"ExeName: {exe}");
        }