46 references to EnumerableType
Microsoft.CodeAnalysis.UnitTests (46)
Collections\HashSet\ISet_Generic_Tests`1.cs (23)
339
new[] {
EnumerableType
.SegmentedHashSet,
EnumerableType
.List }.SelectMany(GetEnumerableTestData);
343
public void ISet_Generic_ExceptWith(
EnumerableType
enumerableType, int setLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
355
public void ISet_Generic_IntersectWith(
EnumerableType
enumerableType, int setLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
367
public void ISet_Generic_IsProperSubsetOf(
EnumerableType
enumerableType, int setLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
376
public void ISet_Generic_IsProperSupersetOf(
EnumerableType
enumerableType, int setLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
385
public void ISet_Generic_IsSubsetOf(
EnumerableType
enumerableType, int setLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
394
public void ISet_Generic_IsSupersetOf(
EnumerableType
enumerableType, int setLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
403
public void ISet_Generic_Overlaps(
EnumerableType
enumerableType, int setLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
412
public void ISet_Generic_SetEquals(
EnumerableType
enumerableType, int setLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
421
public void ISet_Generic_SymmetricExceptWith(
EnumerableType
enumerableType, int setLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
433
public void ISet_Generic_UnionWith(
EnumerableType
enumerableType, int setLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
549
IEnumerable<T> enumerable = CreateEnumerable(
EnumerableType
.List, set, 150, 0, 0);
560
IEnumerable<T> enumerable = CreateEnumerable(
EnumerableType
.List, set, 150, 0, 0);
569
IEnumerable<T> enumerable = CreateEnumerable(
EnumerableType
.List, set, 150, 0, 0);
577
IEnumerable<T> enumerable = CreateEnumerable(
EnumerableType
.List, set, 150, 0, 0);
585
IEnumerable<T> enumerable = CreateEnumerable(
EnumerableType
.List, set, 150, 0, 0);
593
IEnumerable<T> enumerable = CreateEnumerable(
EnumerableType
.List, set, 150, 0, 0);
601
IEnumerable<T> enumerable = CreateEnumerable(
EnumerableType
.List, set, 150, 0, 0);
609
IEnumerable<T> enumerable = CreateEnumerable(
EnumerableType
.List, set, 150, 0, 0);
619
IEnumerable<T> enumerable = CreateEnumerable(
EnumerableType
.List, set, 150, 0, 0);
630
IEnumerable<T> enumerable = CreateEnumerable(
EnumerableType
.List, set, 150, 0, 0);
641
public void ISet_Generic_SymmetricExceptWith_AfterRemovingElements(
EnumerableType
enumerableType, int setLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (4)
86
public void HashSet_Generic_Constructor_IEnumerable(
EnumerableType
enumerableType, int setLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
99
IEnumerable<T> items = CreateEnumerable(
EnumerableType
.List, null, count, 0, 0);
109
SegmentedHashSet<T> source = (SegmentedHashSet<T>)CreateEnumerable(
EnumerableType
.SegmentedHashSet, null, count, 0, 0);
127
public void HashSet_Generic_Constructor_IEnumerable_IEqualityComparer(
EnumerableType
enumerableType, int setLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
Collections\List\ICollection.NonGeneric.Tests.cs (1)
238
Array enumArr = Enum.GetValues(typeof(
EnumerableType
));
Collections\List\SegmentedList.Generic.Tests.AddRange.cs (1)
31
public void AddRange(
EnumerableType
enumerableType, int listLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
Collections\List\SegmentedList.Generic.Tests.Constructor.cs (1)
58
public void Constructor_IEnumerable(
EnumerableType
enumerableType, int listLength, int enumerableLength, int numberOfMatchingElements, int numberOfDuplicateElements)
Collections\List\SegmentedList.Generic.Tests.cs (1)
50
IEnumerable<T> toCreateFrom = CreateEnumerable(
EnumerableType
.List, null, count, 0, 0);
Collections\List\SegmentedList.Generic.Tests.IndexOf.cs (1)
107
IEnumerable<T> nonexistentValues = CreateEnumerable(
EnumerableType
.List, list, count: count, numberOfMatchingElements: 0, numberOfDuplicateElements: 0);
Collections\List\TestBase.Generic.cs (14)
51
((IEnumerable<
EnumerableType
>)Enum.GetValues(typeof(
EnumerableType
))).SelectMany(GetEnumerableTestData);
58
GetEnumerableTestData(
EnumerableType
.List);
60
protected static IEnumerable<object[]> GetEnumerableTestData(
EnumerableType
enumerableType)
84
if ((enumerableType ==
EnumerableType
.List || enumerableType ==
EnumerableType
.Queue))
90
if ((enumerableType ==
EnumerableType
.List || enumerableType ==
EnumerableType
.Queue))
103
protected IEnumerable<T> CreateEnumerable(
EnumerableType
type, IEnumerable<T>? enumerableToMatchTo, int count, int numberOfMatchingElements, int numberOfDuplicateElements)
110
case
EnumerableType
.SegmentedHashSet:
113
case
EnumerableType
.List:
115
case
EnumerableType
.SortedSet:
118
case
EnumerableType
.Queue:
120
case
EnumerableType
.Lazy: