Beispiel #1
0
        public void IndexHasEntry(
            [ValueSource("PackObjectIds")]     string id,
            [ValueSource("PackObjectCrcs")] int crc,
            [ValueSource("PackObjectOffsets")]    int offset
            )
        {
            var file = Path.Combine(PacksPath, "pack-582fdcbadcd4640394f15127be4fb9e755876c51.idx");
            var index = new PackIndex(file, 237);
            var entry = index.GetEntry(id);

            Assert.AreEqual(id, entry.Id);
            Assert.AreEqual(crc, entry.Crc);
            Assert.AreEqual(offset, entry.Offset);
        }