mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Aaru.Tests] Reformat and cleanup.
This commit is contained in:
@@ -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]));
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user