public void CreatePageWithNoOutputIndexingModeWidget_RenderPageInMemory_ResponseDoesNotContainWidget() { string testName = System.Reflection.MethodInfo.GetCurrentMethod().Name; string pageNamePrefix = testName + "MvcPage"; string pageTitlePrefix = testName + "Mvc Page"; string urlNamePrefix = testName + "mvc-page"; int index = 1; var mvcProxy = new MvcControllerProxy(); mvcProxy.ControllerName = typeof(DummyNoOutputInIndexingController).FullName; using (var contentGenerator = new PageContentGenerator()) { var pageId = contentGenerator.CreatePageWithWidget(mvcProxy, string.Empty, pageNamePrefix, pageTitlePrefix, urlNamePrefix, index); var pageNode = PageManager.GetManager().GetPageNode(pageId); var content = new InMemoryPageRender().RenderPage(pageNode); Assert.DoesNotContain(content, DummyNoOutputInIndexingController.Output, "The output of the widget that should not have been rendered was found!"); } }