public void test003_lookupCompressedObject() { ObjectId id = ObjectId.FromString("902d5476fa249b7abc9d84c611577a81381f0327"); var pr = new PackFile(TestIdx, TestPack); PackedObjectLoader or = pr.Get(new WindowCursor(), id); Assert.IsNotNull(or); Assert.AreEqual(Constants.OBJ_TREE, or.Type); Assert.AreEqual(35, or.Size); Assert.AreEqual(7738, or.DataOffset); pr.Close(); }
public void test003_lookupCompressedObject() { ObjectId id = ObjectId.FromString("902d5476fa249b7abc9d84c611577a81381f0327"); var pr = new PackFile(TestIdx, TestPack); PackedObjectLoader or = pr.Get(new WindowCursor(), id); Assert.IsNotNull(or); Assert.AreEqual(Constants.OBJ_TREE, or.Type); Assert.AreEqual(35, or.Size); Assert.AreEqual(7738, or.DataOffset); pr.Close(); }
public virtual void Test003_lookupCompressedObject() { PackFile pr; ObjectId id; ObjectLoader or; id = ObjectId.FromString("902d5476fa249b7abc9d84c611577a81381f0327"); pr = new PackFile(TEST_IDX, TEST_PACK); or = pr.Get(new WindowCursor(null), id); NUnit.Framework.Assert.IsNotNull(or); NUnit.Framework.Assert.AreEqual(Constants.OBJ_TREE, or.GetType()); NUnit.Framework.Assert.AreEqual(35, or.GetSize()); pr.Close(); }
public void test003_lookupCompressedObject() { PackFile pr; ObjectId id; PackedObjectLoader or; id = ObjectId.FromString("902d5476fa249b7abc9d84c611577a81381f0327"); pr = new PackFile(TEST_IDX, TEST_PACK); or = pr.Get(new WindowCursor(), id); Assert.IsNotNull(or); Assert.AreEqual(Constants.OBJ_TREE, or.getType()); Assert.AreEqual(35, or.getSize()); Assert.AreEqual(7738, or.getDataOffset()); pr.Close(); }