/// <summary>
        /// Initializes a new <see cref="FeatureTagHelperTypeResolver"/> instance.
        /// </summary>
        /// <param name="manager">The <see cref="ApplicationPartManager"/> of the application.</param>
        public FeatureTagHelperTypeResolver(ApplicationPartManager manager)
        {
            if (manager == null)
            {
                throw new ArgumentNullException(nameof(manager));
            }

            _feature = new TagHelperFeature();
            manager.PopulateFeature(_feature);
        }
        public void Populate_IncludesTagHelpers()
        {
            // Arrange
            var manager = new ApplicationPartManager();

            manager.ApplicationParts.Add(new TestApplicationPart(typeof(DiscoveryTagHelper)));
            manager.FeatureProviders.Add(new TagHelperFeatureProvider());

            var feature = new TagHelperFeature();

            // Act
            manager.PopulateFeature(feature);

            // Assert
            var tagHelperType = Assert.Single(feature.TagHelpers, th => th == typeof(DiscoveryTagHelper).GetTypeInfo());
        }