Use struct to define all expected data for file system tests.

This commit is contained in:
2021-03-01 21:18:02 +00:00
parent 7cacb9bf84
commit 7f3c0081ff
115 changed files with 13070 additions and 8694 deletions

View File

@@ -43,54 +43,19 @@ namespace Aaru.Tests.Filesystems.NTFS
public override IFilesystem _plugin => new Aaru.Filesystems.NTFS();
public override bool _partitions => true;
public override string[] _testFiles => new[]
public override FileSystemTest[] Tests => new[]
{
"haiku_hrev51259.aif"
};
public override MediaType[] _mediaTypes => new[]
{
MediaType.GENERIC_HDD
};
public override ulong[] _sectors => new ulong[]
{
2097152
};
public override uint[] _sectorSize => new uint[]
{
512
};
public override string[] _appId => null;
public override bool[] _bootable => new[]
{
true
};
public override long[] _clusters => new long[]
{
261887
};
public override uint[] _clusterSize => new uint[]
{
4096
};
public override string[] _oemId => new string[]
{
null
};
public override string[] _type => null;
public override string[] _volumeName => new string[]
{
null, null, null, null, null, null, null, null
};
public override string[] _volumeSerial => new[]
{
"106DA7693F7F6B3F"
new FileSystemTest
{
TestFile = "haiku_hrev51259.aif",
MediaType = MediaType.GENERIC_HDD,
Sectors = 2097152,
SectorSize = 512,
Bootable = true,
Clusters = 261887,
ClusterSize = 4096,
VolumeSerial = "106DA7693F7F6B3F"
}
};
}
}