public void GetFNVHashCode_WithNonEmptyEnumerable_ExpectsAllUniqueHashCodes() { var result = ENMRBL_NON_EMPTY .Select(item => new[] { item }.GetFNVHashCode()) .ToList(); Equal(result, result.Distinct()); }
public void GroupToDictionary_WithNonEmptyEnumerableAndIdentifyFunction_ExpectsDictionaryOfSingles() { var dictionary = ENMRBL_NON_EMPTY.GroupToDictionary(DefaultDelegates.IdentityFunction <MultiItems>()); Equal(ENMRBL_NON_EMPTY.ToList(), dictionary.Keys); Utilities.AssertManySequencesEqual( ENMRBL_NON_EMPTY.Select(item => new[] { item }), dictionary.Values); }