public void FindsHasH1AndDescriptionHashH2(string content, string description, string because) { ContentMetadataParser.Metadata result = ContentMetadataParser.Parse(content); var expected = new ContentMetadataParser.Metadata("The Title", description); result.Should().Be(expected, because); }
public void FindsHashH1WithDashH2(string content, string because) { ContentMetadataParser.Metadata result = ContentMetadataParser.Parse(content); var expected = new ContentMetadataParser.Metadata(HeaderText, null); result.Should().Be(expected, because); }