4 references to SingletonList
Microsoft.CodeAnalysis.UnitTests (4)
Collections\EnumerableExtensionsTests.cs (4)
58
Assert.Equal(-1, ((IEnumerable<int>)SpecializedCollections.
SingletonList
(5)).IndexOf(6));
59
Assert.Equal(0, ((IEnumerable<int>)SpecializedCollections.
SingletonList
(5)).IndexOf(5));
73
Assert.Equal(-1, ((IEnumerable<int>)SpecializedCollections.
SingletonList
(5)).IndexOf(-6, comparer));
74
Assert.Equal(0, ((IEnumerable<int>)SpecializedCollections.
SingletonList
(5)).IndexOf(-5, comparer));