Beispiel #1
0
        public void SymmetricExceptWithTest1()
        {
            var bag = new HashBag <int> {
                1, 2, 3, 4
            };
            var l = new List <int> {
                1, 2, 3, 4
            };

            bag.SymmetricExceptWith(l);

            Assert.Equal(0, bag.Count);
        }
Beispiel #2
0
        public void SymmetricExceptWithTest3()
        {
            var bag = new HashBag <int> {
                1, 2, 3, 4
            };
            var l = new List <int> {
                3, 4, 5, 6
            };

            bag.SymmetricExceptWith(l);

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