13 references to IsSame
Microsoft.CodeAnalysis.UnitTests (13)
Collections\ImmutableDictionaryTestBase.cs (6)
54
Assert.True(
IsSame
(map, sameMap));
240
Assert.True(
IsSame
(empty, empty.Clear()));
262
Assert.True(
IsSame
(map, map.Add(key, value2)));
263
Assert.True(
IsSame
(map, map.AddRange(new[] { new KeyValuePair<TKey, TValue>(key, value2) })));
311
Assert.True(
IsSame
(map, map.Remove(key)));
312
Assert.True(
IsSame
(map, map.RemoveRange(Enumerable.Empty<TKey>())));
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (5)
98
Assert.True(
IsSame
(map, jointMap));
101
Assert.True(
IsSame
(map, jointMap));
104
Assert.True(
IsSame
(map, jointMap));
198
Assert.True(
IsSame
(empty, empty.RemoveRange(Enumerable.Empty<int>())));
199
Assert.True(
IsSame
(empty, empty.AddRange(Enumerable.Empty<KeyValuePair<int, int>>())));
Collections\ImmutableSegmentedDictionaryTest.cs (2)
273
Assert.True(
IsSame
(ImmutableSegmentedDictionary<string, int>.Empty, dictionary.Clear()));
286
Assert.False(
IsSame
(ImmutableSegmentedDictionary<string, int>.Empty, clearedDictionary.Clear()));