public void W3wpArgsParser_gets_poolname_with_dots_from_commandline_arguments_supplied_to_w3wp_process()
        {
            //given
            var testCmd = "c:\\windows\\system32\\inetsrv\\w3wp.exe -ap \"apppool v.4.5\" -v \"v4.0\" -l \"webengine4.dll\" -a \\\\.\\pipe\\iisipme00d8e1a - 3d4c - 412a - bb9d - 950a951d2593 -h \"C:\\inetpub\\temp\\apppools\\k1auth-dev\\k1auth-dev.config\" - w \"\" - m 0";

            //when
            string poolName = W3wpArgsParser.GetAppPoolName(testCmd);

            //then
            Assert.Equal("apppool v.4.5", poolName);
        }
        public void W3wpArgsParser_gets_poolname_from_commandline_arguments_supplied_to_w3wp_process()
        {
            //given
            var testCmd =
                "c:\\windows\\system32\\inetsrv\\w3wp.exe -ap \"DefaultAppPool\" -v \"v4.0\" -l \"webengine4.dll\" -a \\\\.\\pipe\\iisipm9a6cdc80-a844-4198-b361-d884bc7157a5 -h \"C:\\inetpub\\temp\\apppools\\DefaultAppPool\\DefaultAppPool.config\" -w \"\" -m 0 -t 20 -ta 0";

            //when
            string poolName = W3wpArgsParser.GetAppPoolName(testCmd);

            //then
            Assert.Equal("DefaultAppPool", poolName);
        }