9 references to IsSame
Microsoft.CodeAnalysis.UnitTests (9)
Collections\ImmutableSetTest.cs (9)
55Assert.True(IsSame(emptySet, emptySet.Remove(5))); 69Assert.True(IsSame(set, setAfterRemoval)); 78Assert.True(IsSame(set, empty2.Union(set))); // "Filling an empty immutable set with the contents of another immutable set with the exact same comparer should return the other set." 165Assert.True(IsSame(originalSet, clearedSet)); 291Assert.True(IsSame(emptySet, emptySet.Clear())); 392Assert.True(IsSame(set, set.Except(Enumerable.Empty<T>()))); 403Assert.True(IsSame(nextSet, nextSet.Remove(value))); //, "Removing a non-existing element should not change the set reference."); 488Assert.True(IsSame(set, set.Union(Enumerable.Empty<T>()))); 521Assert.True(IsSame(nextSet, nextSet.Add(value))); //, "Adding duplicate value {0} should keep the original reference.", value);