Exemplo n.º 1
0
        public void AssertThat_ExceptWith_RemovesSpecifiedItems()
        {
            for (var i = 0; i < 10; i++)
            {
                _set.Add(i);
            }

            _set.ExceptWith(new int[] { 1, 2, 3 });

            Assert.IsFalse(_set.Contains(1));
            Assert.IsFalse(_set.Contains(2));
            Assert.IsFalse(_set.Contains(3));

            Assert.IsTrue(_set.Contains(4));
            Assert.IsTrue(_set.Contains(5));
            Assert.IsTrue(_set.Contains(6));
            Assert.IsTrue(_set.Contains(7));
            Assert.IsTrue(_set.Contains(8));
            Assert.IsTrue(_set.Contains(9));
        }