示例#1
0
		public virtual void testEntryObjectId()
		{
			EmptyTreeIterator etp = new EmptyTreeIterator();
			Assert.AreSame(ObjectId.ZeroId, etp.getEntryObjectId());
			Assert.IsNotNull(etp.idBuffer());
			Assert.AreEqual(0, etp.idOffset());
			Assert.AreEqual(ObjectId.ZeroId, ObjectId.FromRaw(etp.idBuffer()));
		}
        public virtual void testBackDoesNothing()
        {
            EmptyTreeIterator etp = new EmptyTreeIterator();
            etp.back(1);
            Assert.IsTrue(etp.first());
            Assert.IsTrue(etp.eof());
            Assert.AreEqual(ObjectId.ZeroId, ObjectId.FromRaw(etp.idBuffer()));

            etp.back(1);
            Assert.IsTrue(etp.first());
            Assert.IsTrue(etp.eof());
            Assert.AreEqual(ObjectId.ZeroId, ObjectId.FromRaw(etp.idBuffer()));
        }