[Aaru.Tests] Reformat and cleanup.

This commit is contained in:
2023-10-03 23:44:33 +01:00
parent 4b7fe8a837
commit 1f36ef2424
171 changed files with 1608 additions and 1661 deletions

View File

@@ -40,25 +40,13 @@ namespace Aaru.Tests.Devices;
[TestFixture]
public class IomegaJaz
{
readonly string[] _testFiles =
{
"jaz1.bin.lz"
};
readonly string[] _testFiles = { "jaz1.bin.lz" };
readonly MediaType[] _mediaTypes =
{
MediaType.Jaz
};
readonly MediaType[] _mediaTypes = { MediaType.Jaz };
readonly ulong[] _sectors =
{
2091050
};
readonly ulong[] _sectors = { 2091050 };
readonly uint[] _sectorSize =
{
512
};
readonly uint[] _sectorSize = { 512 };
readonly string _dataFolder = Path.Combine(Consts.TestFilesRoot, "Device test dumps", "JAZ");
@@ -69,7 +57,7 @@ public class IomegaJaz
Assert.Multiple(() =>
{
for(int i = 0; i < _testFiles.Length; i++)
for(var i = 0; i < _testFiles.Length; i++)
{
var filter = new LZip();
filter.Open(_testFiles[i]);
@@ -83,6 +71,7 @@ public class IomegaJaz
continue;
using(new AssertionScope())
{
Assert.Multiple(() =>
{
Assert.AreEqual(_sectors[i], image.Info.Sectors,
@@ -94,6 +83,7 @@ public class IomegaJaz
Assert.AreEqual(_mediaTypes[i], image.Info.MediaType,
string.Format(Localization.Media_type_0, _testFiles[i]));
});
}
}
});
}