Inheritance: Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
        public void Process_NullAuthorizationProvider_RemovedWrappingTag()
        {
            helper = new AuthorizeTagHelper(null);

            output.PostContent.SetContent("PostContent");
            output.PostElement.SetContent("PostElement");
            output.PreContent.SetContent("PreContent");
            output.PreElement.SetContent("PreElement");
            output.Content.SetContent("Content");
            output.TagName = "TagName";

            helper.Process(null, output);

            Assert.Equal("PostContent", output.PostContent.GetContent());
            Assert.Equal("PostElement", output.PostElement.GetContent());
            Assert.Equal("PreContent", output.PreContent.GetContent());
            Assert.Equal("PreElement", output.PreElement.GetContent());
            Assert.Equal("Content", output.Content.GetContent());
            Assert.Null(output.TagName);
        }
 public AuthorizeTagHelperTests()
 {
     output = new TagHelperOutput("authorize", new TagHelperAttributeList(), (useCachedResult, encoder) => null);
     helper = new AuthorizeTagHelper(authorizationProvider = Substitute.For<IAuthorizationProvider>());
     helper.ViewContext = HtmlHelperFactory.CreateHtmlHelper().ViewContext;
 }