Beispiel #1
0
            private void ShouldBeVideoEpisode()
            {
                var tagHelper = new OpenGraphVideoEpisodeTagHelper();

                string?type = tagHelper.Type;

                type.Should().Be("video.episode");
            }
Beispiel #2
0
            private void ShouldContainCorrectMetaTags(
                OpenGraphVideoEpisodeTagHelper tagHelper,
                IEnumerable <MetaTag> expectedMetaTags)
            {
                TagHelperContext context = TagHelperTestUtils.CreateDefaultContext();
                TagHelperOutput  output  = TagHelperTestUtils.CreateDefaultOutput();

                tagHelper.Process(context, output);

                output
                .Should()
                .HaveMetaTagsEquivalentTo(expectedMetaTags, options => options.WithStrictOrdering());
            }