public void NotRenderContentIfControllerEmptyString()
        {
            // Arrange
            var renderer = new ChildActionRenderer(pageContext.Object, htmlHelper.Object);
            var textwriterMock = new Mock<TextWriter>();
            renderer.ActionName = "Index";
            renderer.ControllerName = "";

            // Act
            renderer.Render(textwriterMock.Object);

            // Assert
            textwriterMock.Verify(tw => tw.Write(It.IsAny<string>()), Times.Never());
        }
        public void RenderContentWhenActionAndControllerAreValidStrings()
        {
            // Arrange
            var renderer = new ChildActionRenderer(pageContext.Object, htmlHelper.Object);
            var textwriterMock = new Mock<TextWriter>();
            renderer.ActionName = "Index";
            renderer.ControllerName = "Test";

            // Act
            renderer.Render(textwriterMock.Object);

            // Assert
            textwriterMock.Verify(tw => tw.Write(It.IsAny<HtmlString>()));
        }