Esempio n. 1
0
        public void IntersectDefaultEqualityComparer_SortedDictionaryFirst_ReturnsSortedDictionary()
        {
            var first = new SortedDictionary<int, int> { { 2, 3 }, { 3, 5 } };
            var second = new SortedList<int, int> { { 3, 2 }, { 4, 7 } };

            var actual = first.Intersect(second, EqualityComparer<KeyValuePair<int, int>>.Default);
            Assert.IsInstanceOf<SortedDictionary<int, int>>(actual);
        }