示例#1
0
 public void Clear()
 {
     Set.AddAll(UniqueStuff);
     Set.Clear();
     Assert.IsTrue(Set.Count == 0, "Calling Clear () did not remove all of the elements.");
 }
示例#2
0
 public void Clear()
 {
     Assert.Throws <NotSupportedException>(() => Set.Clear());
 }