public void IReadOnlyDictionary_Generic_Values_ContainsAllCorrectValues(int count)
 {
     SCG.IDictionary <TKey, TValue> dictionary = GenericIDictionaryFactory(count);
     SCG.IEnumerable <TValue>       expected   = dictionary.Select((pair) => pair.Value);
     SCG.IEnumerable <TValue>       values     = ((SCG.IReadOnlyDictionary <TKey, TValue>)dictionary).Values;
     Assert.True(expected.SequenceEqual(values));
 }
Пример #2
0
 public static bool IsSameSequenceAs <T>(this SCG.IEnumerable <T> enumerable, SCG.IEnumerable <T> otherEnumerable)
 => enumerable.SequenceEqual(otherEnumerable, GetIdenticalityComparer <T>());