REFACTOR: All refactor in DiscImageChef.Tests.

This commit is contained in:
2017-12-22 22:18:21 +00:00
parent 19914db94f
commit 6e95ba400b
141 changed files with 478 additions and 480 deletions

View File

@@ -36,7 +36,7 @@ using NUnit.Framework;
namespace DiscImageChef.Tests.Filesystems
{
[TestFixture]
public class UDF
public class Udf
{
readonly string[] testfiles =
{
@@ -105,7 +105,7 @@ namespace DiscImageChef.Tests.Filesystems
Assert.AreEqual(true, image.OpenImage(filter), testfiles[i]);
Assert.AreEqual(sectors[i], image.ImageInfo.Sectors, testfiles[i]);
Assert.AreEqual(sectorsize[i], image.ImageInfo.SectorSize, testfiles[i]);
Filesystem fs = new DiscImageChef.Filesystems.UDF();
Filesystem fs = new UDF();
Partition wholePart = new Partition
{
Name = "Whole device",
@@ -113,7 +113,7 @@ namespace DiscImageChef.Tests.Filesystems
Size = image.ImageInfo.Sectors * image.ImageInfo.SectorSize
};
Assert.AreEqual(true, fs.Identify(image, wholePart), testfiles[i]);
fs.GetInformation(image, wholePart, out string information);
fs.GetInformation(image, wholePart, out _);
Assert.AreEqual(clusters[i], fs.XmlFSType.Clusters, testfiles[i]);
Assert.AreEqual(clustersize[i], fs.XmlFSType.ClusterSize, testfiles[i]);
Assert.AreEqual(udfversion[i], fs.XmlFSType.Type, testfiles[i]);