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)); }
public void RemoveAll() { object[] removed = new object[] { 1, 3 }; Assert.Throws <NotSupportedException>(() => Set.RemoveAll(removed)); }