private fsMegaImage CreateDisk()
        {
            var disk = new AtrDiskImage();

            disk.CreateImage(WORKDIR + "testdisk.atr", 8192, 128);
            disk.Mount(WORKDIR + "testdisk.atr", 128);

            var fs = new fsMegaImage(disk);
            fs.Format(false);
            return fs;
        }
        private fsDos20 CreateDisk()
        {
            var disk = new AtrDiskImage();

            disk.CreateImage(WORKDIR + "testdisk.atr", 720, 128);
            disk.Mount(WORKDIR + "testdisk.atr", 128);
            disk.Unmount();
            var fs = new fsDos20(disk);
            fs.Format(false);
            return fs;
        }
        public void DirectoryStartSector()
        {
            var disk = new AtrDiskImage();
            var fs = new fsDos20(disk);
            fs.DirectoryStartSector = 361;

            int sector, offset;
            fs.DirectorySectorLocation(0, out sector, out offset);
            Assert.AreEqual(361, sector, "Sector file 0");
            Assert.AreEqual(0, offset, "Offset file 0");

            fs.DirectorySectorLocation(1, out sector, out offset);
            Assert.AreEqual(361, sector, "Sector file 1");
            Assert.AreEqual(16, offset, "Offset file 1");

            fs.DirectorySectorLocation(8, out sector, out offset);
            Assert.AreEqual(362, sector, "Sector file 8");
            Assert.AreEqual(0, offset, "Offset file 8");
            
            
        }