mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 12:37:13 +00:00
refactor: Using EqualityComparer instead of Comparer for equality...
This commit is contained in:
parent
c868034769
commit
0d85fe8106
2 changed files with 5 additions and 5 deletions
|
|
@ -537,7 +537,7 @@ namespace ICD.Common.Utils.Tests.Extensions
|
|||
[Test]
|
||||
public void ConsolidateComparerTest()
|
||||
{
|
||||
string[] sequence = new[] {"A", "B", "B", "C"}.Consolidate(Comparer<string>.Default).ToArray();
|
||||
string[] sequence = new[] {"A", "B", "B", "C"}.Consolidate(EqualityComparer<string>.Default).ToArray();
|
||||
|
||||
Assert.AreEqual(3, sequence.Length, StringUtils.ArrayFormat(sequence));
|
||||
Assert.AreEqual("A", sequence[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue