Skip to content

Commit 01b879e

Browse files
authored
Merge pull request #1062 from HeSitates/master
Remove StringUtil from example DictionaryContainsKeyValuePairConstraint.
2 parents 6b716d5 + 86d236e commit 01b879e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/articles/nunit/writing-tests/constraints/DictionaryContainsKeyValuePairConstraint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Assert.That(dictionary, new DictionaryContainsKeyValuePairConstraint("Hi", "Univ
2525
Assert.That(dictionary, Does.ContainKey("Hola").WithValue("Mundo"));
2626
Assert.That(dictionary, Does.Not.ContainKey("Hello").WithValue("NotValue"));
2727
Assert.That(dictionary, new DictionaryContainsKeyValuePairConstraint("HI", "UNIVERSE").IgnoreCase);
28-
Assert.That(dictionary, new DictionaryContainsKeyValuePairConstraint("HI", "UNIVERSE").Using<string>((x, y) => StringUtil.Compare(x, y, true)));
28+
Assert.That(dictionary, new DictionaryContainsKeyValuePairConstraint("HI", "UNIVERSE").Using<string>((x, y) => string.Compare(x, y, StringComparison.CurrentCultureIgnoreCase)));
2929
```
3030

3131
## Modifiers

0 commit comments

Comments
 (0)