public void RenderPartialWithSectionAsSegmentContentFromSettings() { settings.SetParseSectionTagAsSegment(true); mocks.ReplayAll(); var viewContext = MakeViewContext("render-partial-section-or-ignore", null); factory.RenderView(viewContext); mocks.VerifyAll(); string content = sb.ToString(); Assert.That(content, Contains.InOrder( "xbox", "xtop", "xb1", "xb2", "xb3", "xb4", "xboxcontent", "title=\"My Tooltip\"", "<h3>This is a test</h3>", "Hello World", "xbottom", "xb4", "xb3", "xb2", "xb1")); }