public void testBackwards_ConfusingPathName() { const string aVeryConfusingName = "confusing 644 entry 755 and others"; ctp.reset(mktree(Entry(m644, "a", hash_a), Entry(mt, aVeryConfusingName, hash_sometree), Entry(m644, "foo", hash_foo))); ctp.next(3); Assert.IsTrue(ctp.eof()); ctp.back(2); Assert.IsFalse(ctp.eof()); Assert.AreEqual(mt.Bits, ctp.Mode); Assert.AreEqual(aVeryConfusingName, Path()); Assert.AreEqual(hash_sometree, ctp.getEntryObjectId()); ctp.back(1); Assert.IsFalse(ctp.eof()); Assert.AreEqual(m644.Bits, ctp.Mode); Assert.AreEqual("a", Path()); Assert.AreEqual(hash_a, ctp.getEntryObjectId()); }