Esempio n. 1
0
 public void RemoveAll()
 {
     Set.AddAll(UniqueStuff);
     object [] removed = new object [] { StuffOne, StuffTwo };
     Set.RemoveAll(removed);
     Assert.IsTrue(Set.Count == (UniqueStuff.Length - removed.Length));
     Assert.IsFalse(Set.Contains(StuffOne));
     Assert.IsFalse(Set.Contains(StuffTwo));
     Assert.IsTrue(Set.Contains(StuffThree));
 }
Esempio n. 2
0
 public void RemoveAll()
 {
     object[] removed = new object[] { 1, 3 };
     Assert.Throws <NotSupportedException>(() => Set.RemoveAll(removed));
 }