public void AddDuplicate() { Set.Add(StuffOne); Assert.IsFalse(Set.Add(StuffOne)); Assert.IsTrue(Set.Count == 1, "Added 2 duplicate items, but the Count property wasn't sitting at 1."); }
public void IsEmpty() { Set.Add(StuffOne); Set.Remove(StuffOne); Assert.IsTrue(Set.IsEmpty); }
public void Add() { Assert.IsTrue(Set.Add(StuffOne)); Assert.IsTrue(Set.Count == 1, "Added 1 unique item, but the Count property wasn't sitting at 1."); }
public void Add() { Assert.Throws <NotSupportedException>(() => Set.Add(1)); }