public virtual void TestLockMissing_RealIndex()
{
FilePath idx = new FilePath(db.Directory, "index");
FilePath lck = new FilePath(db.Directory, "index.lock");
NUnit.Framework.Assert.IsFalse(idx.Exists());
NUnit.Framework.Assert.IsFalse(lck.Exists());
DirCache dc = db.LockDirCache();
NUnit.Framework.Assert.IsNotNull(dc);
NUnit.Framework.Assert.IsFalse(idx.Exists());
NUnit.Framework.Assert.IsTrue(lck.Exists());
NUnit.Framework.Assert.AreEqual(0, dc.GetEntryCount());
dc.Unlock();
NUnit.Framework.Assert.IsFalse(idx.Exists());
NUnit.Framework.Assert.IsFalse(lck.Exists());
}