Exemple #1
0
        public int[] CheckRemoveNonExistingElementFromSet(int[] array, int element)
        {
            var set = new GenericSet <int>(array);

            Assert.That(set.Remove(element), Is.False);
            return(set.ToArray());
        }
 public void RemoveWorksTest()
 {
     set.Add(1);
     set.Remove(1);
     Assert.AreEqual(0, set.Count);
 }