Exemple #1
0
        public void IntersectWithTest2()
        {
            var bag = new HashBag <int> {
                3, 5, 1, 4, 6, 2, 3, 5, 1, 4, 6, 2
            };
            var l = new List <int> {
                1, 1, 2, 3, 3, 4, 5, 7, 8, 9
            };

            bag.IntersectWith(l);

            Assert.Equal(new[] { 3, 3, 5, 1, 1, 4, 2 }, bag);
        }