Ejemplo n.º 1
0
        public virtual void TestSingleAdd()
        {
            object 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()));
            IEnumerator iter = _set.GetEnumerator();

            Assert.IsTrue(iter.MoveNext());
            Assert.AreEqual(obj, iter.Current);
        }
Ejemplo n.º 2
0
 public virtual void TestSize()
 {
     Assert.AreEqual(data.Length, subject.Size());
 }