Skip to content

Commit

Permalink
SLVS-1600 Add back code removed unintentionally
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriela-trutan-sonarsource authored and vnaskos-sonar committed Jan 20, 2025
1 parent 58860a2 commit 629f5d7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ public void TranslateHtmlToXaml_TwoCompliantCode_DoesNotHighlightCode()
var noncompliantXaml = @"Same text 1
<Span Style=""{DynamicResource NonCompliant_Diff}"">diff 2</Span>
same text 2";
diffTranslator.GetDiffXaml(nonCompliantText1, compliantText).Returns((noncompliantXaml, compliantXaml));

var htmlText
= $"<pre data-diff-type=\"compliant\" data-diff-id=\"1\">{compliantText}</pre>\n<pre data-diff-type =\"noncompliant\" data-diff-id=\"1\">{nonCompliantText1}</pre>\n<pre data-diff-type =\"noncompliant\" data-diff-id=\"1\">{nonCompliantText2}</pre>";
Expand All @@ -223,6 +224,7 @@ diff 3
var result = mockedTestSubject.TranslateHtmlToXaml(htmlText);

result.Replace("\r\n", "\n").Should().Be(expectedText.Replace("\r\n", "\n"));
diffTranslator.DidNotReceive().GetDiffXaml(Arg.Any<string>(), Arg.Any<string>());
}

[TestMethod]
Expand Down

0 comments on commit 629f5d7

Please sign in to comment.