Added more tests.

This commit is contained in:
2017-07-13 00:17:18 +01:00
parent 14baa50ae1
commit ed03a9dceb
21 changed files with 1338 additions and 49 deletions

View File

@@ -51,35 +51,31 @@ namespace DiscImageChef.Tests.Filesystems
public class BeFS_MBR
{
readonly string[] testfiles = {
"beos_r3.1.vdi.lz", "beos_r4.5.vdi.lz", "haiku_hrev51259.vdi.lz",
"beos_r3.1.vdi.lz", "beos_r4.5.vdi.lz", "haiku_hrev51259.vdi.lz","syllable_0.6.7.vdi.lz"
};
readonly ulong[] sectors = {
1572864, 1572864,8388608,
1572864, 1572864, 8388608, 2097152,
};
readonly uint[] sectorsize = {
512, 512, 512,
512, 512, 512, 512,
};
readonly long[] clusters = {
786400, 785232, 2096640,
786400, 785232, 2096640, 524272,
};
readonly int[] clustersize = {
1024, 1024, 2048,
1024, 1024, 2048, 2048,
};
readonly string[] volumename = {
"Volume label","Volume label","Volume label",
"Volume label","Volume label","Volume label","Volume label",
};
readonly string[] volumeserial = {
null,null,null,
};
readonly string[] oemid = {
null,null,null,
null,null,null,null,
};
[Test]
@@ -114,7 +110,6 @@ namespace DiscImageChef.Tests.Filesystems
Assert.AreEqual("BeFS", fs.XmlFSType.Type, testfiles[i]);
Assert.AreEqual(volumename[i], fs.XmlFSType.VolumeName, testfiles[i]);
Assert.AreEqual(volumeserial[i], fs.XmlFSType.VolumeSerial, testfiles[i]);
Assert.AreEqual(oemid[i], fs.XmlFSType.SystemIdentifier, testfiles[i]);
}
}
}