Skip to content

Commit

Permalink
Resolve migrated unit test issue - seems can't rely on a "ref" value …
Browse files Browse the repository at this point in the history
…for comparison in the assertion.

git-svn-id: https://svn.code.sf.net/p/autowikibrowser/code/AWB@12772 5227b50d-9349-4574-b055-4b0a7525e11c
  • Loading branch information
Rob Wilmshurst committed Jan 31, 2025
1 parent 187d34c commit 8fb71e6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions UnitTests/SorterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1758,8 +1758,11 @@ The following links are here to prevent the interwiki bot from adding them to th
a = @"[[de:Canadian National Railway]]
[[jbo:canadian National]]
[[fr:Canadien National]]";
// TODO: Seemingly broken during UnitTest migration
// Assert.That(parser2.Sorter.Interwikis(ref a), Is.EqualTo(a + "\r\n"), "first letter casing retained for jbo-wiki links");

Assert.That(parser2.Sorter.Interwikis(ref a), Is.EqualTo(@"[[de:Canadian National Railway]]
[[jbo:canadian National]]
[[fr:Canadien National]]
"), "first letter casing retained for jbo-wiki links");

string i = @"{{Canadianmetros|
[[it:CN]]
Expand Down

0 comments on commit 8fb71e6

Please sign in to comment.