mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Update NUnit.
This commit is contained in:
@@ -65,7 +65,7 @@ public class Ls120
|
||||
var image = new ZZZRawImage();
|
||||
ErrorNumber opened = image.Open(filter);
|
||||
|
||||
Assert.AreEqual(ErrorNumber.NoError, opened, string.Format(Localization.Open_0, _testFiles[i]));
|
||||
Assert.That(opened, Is.EqualTo(ErrorNumber.NoError), string.Format(Localization.Open_0, _testFiles[i]));
|
||||
|
||||
if(opened != ErrorNumber.NoError) continue;
|
||||
|
||||
@@ -73,17 +73,17 @@ public class Ls120
|
||||
{
|
||||
Assert.Multiple(() =>
|
||||
{
|
||||
Assert.AreEqual(_sectors[i],
|
||||
image.Info.Sectors,
|
||||
string.Format(Localization.Sectors_0, _testFiles[i]));
|
||||
Assert.That(image.Info.Sectors,
|
||||
Is.EqualTo(_sectors[i]),
|
||||
string.Format(Localization.Sectors_0, _testFiles[i]));
|
||||
|
||||
Assert.AreEqual(_sectorSize[i],
|
||||
image.Info.SectorSize,
|
||||
string.Format(Localization.Sector_size_0, _testFiles[i]));
|
||||
Assert.That(image.Info.SectorSize,
|
||||
Is.EqualTo(_sectorSize[i]),
|
||||
string.Format(Localization.Sector_size_0, _testFiles[i]));
|
||||
|
||||
Assert.AreEqual(_mediaTypes[i],
|
||||
image.Info.MediaType,
|
||||
string.Format(Localization.Media_type_0, _testFiles[i]));
|
||||
Assert.That(image.Info.MediaType,
|
||||
Is.EqualTo(_mediaTypes[i]),
|
||||
string.Format(Localization.Media_type_0, _testFiles[i]));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user