예제 #1
0
        public void AddRangeTest2()
        {
            var bag = new SortedBag <int>();
            var l   = new List <int> {
                1, 2, 1
            };

            bag.AddRange(l);

            Assert.Equal(3, bag.Count);
            Assert.Equal(2, bag.GetCount(1));
            Assert.Equal(1, bag.GetCount(2));
        }