public void Logout_1Test() { TextWriter tw = new StringWriter(); wr = new TestWorkerRequest("/appinternals/logout", "", tw); wr.SetRemoteAddress("127.0.0.1"); HttpContext.Current = new HttpContext(wr); wr.SetCookie("cfx_aurz=" + GenCookieVal()); wr.SetHost("cms.fx.fws.qa.nt.ctripcorp.com"); wr.SetRemoteAddress("172.16.144.2"); try { authorization.Object.LogOut(); } catch (Exception ex) { } }