public void UpdateConfigBeanTest() { AppInernalsManager_Accessor target = new AppInernalsManager_Accessor(); // TODO: Initialize to an appropriate value ConfigBeanBase configBean = null; // TODO: Initialize to an appropriate value IReader expected = null; // TODO: Initialize to an appropriate value //HttpRequest request = new HttpRequest("~/", "http://localhost/test/appinternals/configurations/beans/appsettingsbean", "action=view"); //HttpResponse response = new HttpResponse(new StringWriter()); //HttpContext context = new HttpContext(request, response); //HttpContext.Current = context; Thread.GetDomain().SetData(".appPath", AppDomain.CurrentDomain.BaseDirectory); Thread.GetDomain().SetData(".appVPath", "/"); Thread.GetDomain().SetData(".appDomain", "*"); TextWriter tw = new StringWriter(); TestWorkerRequest wr = new TestWorkerRequest("test/appinternals/configurations/beans/appsettingsbean", "action=view", tw); wr.SetRemoteAddress("127.0.0.1"); HttpContext.Current = new HttpContext(wr); IReader actual; HttpRequest request = HttpContext.Current.Request; actual = target.UpdateConfigBean(configBean, request); Assert.AreNotEqual(expected, actual); }
public void UpdateConfigBeanTest() { AppInernalsManager_Accessor target = new AppInernalsManager_Accessor(); // TODO: Initialize to an appropriate value ConfigBeanBase configBean = null; // TODO: Initialize to an appropriate value IReader expected = null; // TODO: Initialize to an appropriate value HttpRequest request = new HttpRequest("~/", "http://localhost/test/appinternals/configurations/beans/appsettingsbean", "action=view"); HttpResponse response = new HttpResponse(new StringWriter()); HttpContext context = new HttpContext(request, response); HttpContext.Current = context; IReader actual; actual = target.UpdateConfigBean(configBean, request); Assert.AreNotEqual(expected, actual); }