Пример #1
0
		public virtual void TestEmpty()
		{
			EditList l = new EditList();
			NUnit.Framework.Assert.AreEqual(0, l.Count);
			NUnit.Framework.Assert.IsTrue(l.IsEmpty());
			NUnit.Framework.Assert.AreEqual("EditList[]", l.ToString());
			NUnit.Framework.Assert.AreEqual(l, l);
			NUnit.Framework.Assert.AreEqual(new EditList(), l);
			NUnit.Framework.Assert.IsFalse(l.Equals(string.Empty));
			NUnit.Framework.Assert.AreEqual(l.GetHashCode(), new EditList().GetHashCode());
		}
Пример #2
0
        public void testEmpty()
        {
            EditList l = new EditList();
            Assert.AreEqual(0, l.size());
            Assert.IsTrue(l.isEmpty());
            Assert.AreEqual("EditList[]", l.ToString());

            Assert.IsTrue(l.Equals(l));
            Assert.IsTrue(l.Equals(new EditList()));
            Assert.IsFalse(l.Equals(string.Empty));
            Assert.AreEqual(l.GetHashCode(), new EditList().GetHashCode());
        }
Пример #3
0
        public void testEmpty()
        {
            EditList l = new EditList();

            Assert.AreEqual(0, l.size());
            Assert.IsTrue(l.isEmpty());
            Assert.AreEqual("EditList[]", l.ToString());

            Assert.IsTrue(l.Equals(l));
            Assert.IsTrue(l.Equals(new EditList()));
            Assert.IsFalse(l.Equals(string.Empty));
            Assert.AreEqual(l.GetHashCode(), new EditList().GetHashCode());
        }