Update NUnit.

This commit is contained in:
2024-05-02 03:40:35 +01:00
parent b9bbca1e3e
commit 47cc43aa29
42 changed files with 1148 additions and 1015 deletions

View File

@@ -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]));
});
}
}