public void SingleLineIssue() { var s = DataMother.SecndContentWithBracketCode(); s = CodeHighlightExtension.RepareAngleBrackets(s); var start = new Regex(@"\<pre").Matches(s).Count; var end = new Regex(@"\</pre").Matches(s).Count; start.Should().Be(end); }
private static void AssertSinglePropertyError(Exception exception, string propertyName) { var count = new Regex(propertyName).Matches(exception.Message).Count; count.Should().Be(1); }