public virtual void TestSingleAdd() { var obj = new object(); _set.Add(obj); Assert.IsFalse(_set.IsEmpty()); Assert.AreEqual(1, _set.Size()); Assert.IsTrue(_set.Contains(obj)); Assert.IsFalse(_set.Contains(new object())); var iter = _set.GetEnumerator(); Assert.IsTrue(iter.MoveNext()); Assert.AreEqual(obj, iter.Current); }
public virtual void SetUp() { for (int i = 0; i < data.Length; ++i) { object element = data[i]; subject.Add(element); } }