Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 private static void AssertSinglePropertyError(Exception exception, string propertyName)
 {
     var count = new Regex(propertyName).Matches(exception.Message).Count;
     count.Should().Be(1);
 }