public void Init() { location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fatx16", "be", "microsoft256mb.img.lz"); filter = new LZip(); filter.Open(location); image = new ZZZRawImage(); Assert.AreEqual(true, image.Open(filter)); fs = new XboxFatPlugin(); List <Partition> partitions = Core.Partitions.GetAll(image); Assert.AreEqual(2, partitions.Count); dataPartition = partitions[1]; Errno error = fs.Mount(image, dataPartition, null, null, null); Assert.AreEqual(Errno.NoError, error); }
public void Init() { _location = Path.Combine(Consts.TEST_FILES_ROOT, "Filesystems", "Xbox FAT16", "be", "microsoft256mb.img.lz"); _filter = new LZip(); _filter.Open(_location); _image = new ZZZRawImage(); Assert.AreEqual(true, _image.Open(_filter)); _fs = new XboxFatPlugin(); List <Partition> partitions = Core.Partitions.GetAll(_image); Assert.AreEqual(2, partitions.Count); _dataPartition = partitions[1]; Errno error = _fs.Mount(_image, _dataPartition, null, null, null); Assert.AreEqual(Errno.NoError, error); }
public void Init() { location = Path.Combine(Consts.TestFilesRoot, "filesystems", "fatx16", "le", "fatx.img.lz"); filter = new LZip(); filter.Open(location); image = new ZZZRawImage(); Assert.AreEqual(true, image.Open(filter)); fs = new XboxFatPlugin(); wholePart = new Partition { Name = "Whole device", Length = image.Info.Sectors, Size = image.Info.Sectors * image.Info.SectorSize }; Errno error = fs.Mount(image, wholePart, null, null, null); Assert.AreEqual(Errno.NoError, error); }
public void Init() { _location = Path.Combine(Consts.TEST_FILES_ROOT, "Filesystems", "Xbox FAT16", "le", "fatx.img.lz"); _filter = new LZip(); _filter.Open(_location); _image = new ZZZRawImage(); Assert.AreEqual(true, _image.Open(_filter)); _fs = new XboxFatPlugin(); _wholePart = new Partition { Name = "Whole device", Length = _image.Info.Sectors, Size = _image.Info.Sectors * _image.Info.SectorSize }; Errno error = _fs.Mount(_image, _wholePart, null, null, null); Assert.AreEqual(Errno.NoError, error); }