15 references to CollectionAssertAreEquivalent
Microsoft.CodeAnalysis.UnitTests (15)
Collections\ImmutableDictionaryBuilderTestBase.cs (4)
131
CollectionAssertAreEquivalent
(new[] { "five", "six" }, builder.Keys);
132
CollectionAssertAreEquivalent
(new[] { "five", "six" }, ((IReadOnlyDictionary<string, int>)builder).Keys.ToArray());
140
CollectionAssertAreEquivalent
(new[] { 5, 6 }, builder.Values);
141
CollectionAssertAreEquivalent
(new[] { 5, 6 }, ((IReadOnlyDictionary<string, int>)builder).Values.ToArray());
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (1)
92
CollectionAssertAreEquivalent
(map.Select(kv => kv.Key).ToList(), Enumerable.Range(1, 100).ToList());
Collections\ImmutableSegmentedHashSetBuilderTest.cs (2)
283
CollectionAssertAreEquivalent
(new[] { null, "a", "b" }, array);
287
CollectionAssertAreEquivalent
(new[] { "a", "b" }, builder.ToArray()); // tests enumerator
Collections\ImmutableSegmentedHashSetTest.cs (1)
65
CollectionAssertAreEquivalent
(set.ToList(), sorted.ToList());
Collections\ImmutableSetTest.cs (3)
276
CollectionAssertAreEquivalent
(expectedValues, set.ToList());
445
CollectionAssertAreEquivalent
(nonGenericEnumerableList, values);
448
CollectionAssertAreEquivalent
(list, values);
Collections\ImmutableSetTest.nonnetstandard.cs (4)
119
CollectionAssertAreEquivalent
(expectedSet.ToList(), actualSet.ToList());
131
CollectionAssertAreEquivalent
(expectedSet.ToList(), actualSet.ToList());
145
CollectionAssertAreEquivalent
(expected.ToList(), actual.ToList());
157
CollectionAssertAreEquivalent
(expected.ToList(), actual.ToList());