Adjusted parameters.

This commit is contained in:
2017-07-25 02:45:11 +01:00
parent 9a5d52caab
commit 106d5bead0
6 changed files with 37 additions and 13 deletions

View File

@@ -71,6 +71,10 @@ namespace DiscImageChef.Tests.Filesystems
1024, 1024, 1024, 1024,
};
readonly string[] types = {
"Minix 3 v1", "Minix 3 v1", "Minix 3 v1", "Minix 3 v1",
};
[Test]
public void Test()
{
@@ -95,7 +99,7 @@ namespace DiscImageChef.Tests.Filesystems
fs.GetInformation(image, wholePart, out string information);
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
Assert.AreEqual("Minix v1", fs.XmlFSType.Type, testfiles[i]);
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
}
}
}

View File

@@ -63,13 +63,17 @@ namespace DiscImageChef.Tests.Filesystems
};
readonly long[] clusters = {
130048,130048,
65535,50399,
};
readonly int[] clustersize = {
1024,1024,
};
readonly string[] types = {
"Minix v1", "Minix 3 v1",
};
[Test]
public void Test()
{
@@ -87,7 +91,7 @@ namespace DiscImageChef.Tests.Filesystems
int part = -1;
for(int j = 0; j < partitions.Count; j++)
{
if(partitions[j].Type == "0x81")
if(partitions[j].Type == "0x80" || partitions[j].Type == "0x81")
{
part = j;
break;
@@ -98,7 +102,7 @@ namespace DiscImageChef.Tests.Filesystems
fs.GetInformation(image, partitions[part], out string information);
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
Assert.AreEqual("Minix V1", fs.XmlFSType.Type, testfiles[i]);
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
}
}
}

View File

@@ -71,6 +71,10 @@ namespace DiscImageChef.Tests.Filesystems
1024, 1024, 1024, 1024,
};
readonly string[] types = {
"Minix 3 v2", "Minix 3 v2", "Minix 3 v2", "Minix 3 v2",
};
[Test]
public void Test()
{
@@ -95,7 +99,7 @@ namespace DiscImageChef.Tests.Filesystems
fs.GetInformation(image, wholePart, out string information);
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
Assert.AreEqual("Minix v2", fs.XmlFSType.Type, testfiles[i]);
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
}
}
}

View File

@@ -63,13 +63,17 @@ namespace DiscImageChef.Tests.Filesystems
};
readonly long[] clusters = {
1000,
511055,
};
readonly int[] clustersize = {
1024,
};
readonly string[] types = {
"Minix 3 v2",
};
[Test]
public void Test()
{
@@ -98,7 +102,7 @@ namespace DiscImageChef.Tests.Filesystems
fs.GetInformation(image, partitions[part], out string information);
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
Assert.AreEqual("Minix V2", fs.XmlFSType.Type, testfiles[i]);
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
}
}
}

View File

@@ -64,11 +64,15 @@ namespace DiscImageChef.Tests.Filesystems
};
readonly long[] clusters = {
360, 1200, 720, 1440,
90, 300, 180, 360,
};
readonly int[] clustersize = {
1024, 1024, 1024, 1024,
4096, 4096, 4096, 4096,
};
readonly string[] types = {
"Minix v3", "Minix v3", "Minix v3", "Minix v3",
};
[Test]
@@ -95,7 +99,7 @@ namespace DiscImageChef.Tests.Filesystems
fs.GetInformation(image, wholePart, out string information);
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
Assert.AreEqual("Minix v3", fs.XmlFSType.Type, testfiles[i]);
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
}
}
}

View File

@@ -63,11 +63,15 @@ namespace DiscImageChef.Tests.Filesystems
};
readonly long[] clusters = {
4096,
523151,
};
readonly int[] clustersize = {
1024,
4096,
};
readonly string[] types = {
"Minix v3",
};
[Test]
@@ -98,7 +102,7 @@ namespace DiscImageChef.Tests.Filesystems
fs.GetInformation(image, partitions[part], out string information);
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
Assert.AreEqual("Minix V3", fs.XmlFSType.Type, testfiles[i]);
Assert.AreEqual(types[i], fs.XmlFSType.Type, testfiles[i]);
}
}
}