mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Naming fixes.
This commit is contained in:
@@ -74,14 +74,14 @@ public class Crc16Ccitt
|
||||
fs.EnsureRead(data, 0, 1048576);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
CRC16CCITTContext.Data(data, out byte[] result);
|
||||
CRC16CcittContext.Data(data, out byte[] result);
|
||||
result.Should().BeEquivalentTo(_expectedEmpty);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EmptyFile()
|
||||
{
|
||||
byte[] result = CRC16CCITTContext.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
|
||||
byte[] result = CRC16CcittContext.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
|
||||
|
||||
result.Should().BeEquivalentTo(_expectedEmpty);
|
||||
}
|
||||
@@ -97,7 +97,7 @@ public class Crc16Ccitt
|
||||
fs.EnsureRead(data, 0, 1048576);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
var ctx = new CRC16CCITTContext();
|
||||
var ctx = new CRC16CcittContext();
|
||||
ctx.Update(data);
|
||||
byte[] result = ctx.Final();
|
||||
result.Should().BeEquivalentTo(_expectedEmpty);
|
||||
@@ -114,7 +114,7 @@ public class Crc16Ccitt
|
||||
fs.EnsureRead(data, 0, 15);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
var ctx = new CRC16CCITTContext();
|
||||
var ctx = new CRC16CcittContext();
|
||||
ctx.Update(data);
|
||||
byte[] result = ctx.Final();
|
||||
result.Should().BeEquivalentTo(_expectedRandom15);
|
||||
@@ -131,7 +131,7 @@ public class Crc16Ccitt
|
||||
fs.EnsureRead(data, 0, 2352);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
var ctx = new CRC16CCITTContext();
|
||||
var ctx = new CRC16CcittContext();
|
||||
ctx.Update(data);
|
||||
byte[] result = ctx.Final();
|
||||
result.Should().BeEquivalentTo(_expectedRandom2352);
|
||||
@@ -148,7 +148,7 @@ public class Crc16Ccitt
|
||||
fs.EnsureRead(data, 0, 31);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
var ctx = new CRC16CCITTContext();
|
||||
var ctx = new CRC16CcittContext();
|
||||
ctx.Update(data);
|
||||
byte[] result = ctx.Final();
|
||||
result.Should().BeEquivalentTo(_expectedRandom31);
|
||||
@@ -165,7 +165,7 @@ public class Crc16Ccitt
|
||||
fs.EnsureRead(data, 0, 63);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
var ctx = new CRC16CCITTContext();
|
||||
var ctx = new CRC16CcittContext();
|
||||
ctx.Update(data);
|
||||
byte[] result = ctx.Final();
|
||||
result.Should().BeEquivalentTo(_expectedRandom63);
|
||||
@@ -182,14 +182,14 @@ public class Crc16Ccitt
|
||||
fs.EnsureRead(data, 0, 1048576);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
CRC16CCITTContext.Data(data, out byte[] result);
|
||||
CRC16CcittContext.Data(data, out byte[] result);
|
||||
result.Should().BeEquivalentTo(_expectedRandom);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void RandomFile()
|
||||
{
|
||||
byte[] result = CRC16CCITTContext.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
|
||||
byte[] result = CRC16CcittContext.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
|
||||
|
||||
result.Should().BeEquivalentTo(_expectedRandom);
|
||||
}
|
||||
@@ -205,7 +205,7 @@ public class Crc16Ccitt
|
||||
fs.EnsureRead(data, 0, 1048576);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
var ctx = new CRC16CCITTContext();
|
||||
var ctx = new CRC16CcittContext();
|
||||
ctx.Update(data);
|
||||
byte[] result = ctx.Final();
|
||||
result.Should().BeEquivalentTo(_expectedRandom);
|
||||
|
||||
@@ -75,14 +75,14 @@ public class Crc16Ibm
|
||||
fs.EnsureRead(data, 0, 1048576);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
CRC16IBMContext.Data(data, out byte[] result);
|
||||
CRC16IbmContext.Data(data, out byte[] result);
|
||||
result.Should().BeEquivalentTo(_expectedEmpty);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EmptyFile()
|
||||
{
|
||||
byte[] result = CRC16IBMContext.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
|
||||
byte[] result = CRC16IbmContext.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "empty"));
|
||||
|
||||
result.Should().BeEquivalentTo(_expectedEmpty);
|
||||
}
|
||||
@@ -98,7 +98,7 @@ public class Crc16Ibm
|
||||
fs.EnsureRead(data, 0, 1048576);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
IChecksum ctx = new CRC16IBMContext();
|
||||
IChecksum ctx = new CRC16IbmContext();
|
||||
ctx.Update(data);
|
||||
byte[] result = ctx.Final();
|
||||
result.Should().BeEquivalentTo(_expectedEmpty);
|
||||
@@ -115,7 +115,7 @@ public class Crc16Ibm
|
||||
fs.EnsureRead(data, 0, 15);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
IChecksum ctx = new CRC16IBMContext();
|
||||
IChecksum ctx = new CRC16IbmContext();
|
||||
ctx.Update(data);
|
||||
byte[] result = ctx.Final();
|
||||
result.Should().BeEquivalentTo(_expectedRandom15);
|
||||
@@ -132,7 +132,7 @@ public class Crc16Ibm
|
||||
fs.EnsureRead(data, 0, 2352);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
IChecksum ctx = new CRC16IBMContext();
|
||||
IChecksum ctx = new CRC16IbmContext();
|
||||
ctx.Update(data);
|
||||
byte[] result = ctx.Final();
|
||||
result.Should().BeEquivalentTo(_expectedRandom2352);
|
||||
@@ -149,7 +149,7 @@ public class Crc16Ibm
|
||||
fs.EnsureRead(data, 0, 31);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
IChecksum ctx = new CRC16IBMContext();
|
||||
IChecksum ctx = new CRC16IbmContext();
|
||||
ctx.Update(data);
|
||||
byte[] result = ctx.Final();
|
||||
result.Should().BeEquivalentTo(_expectedRandom31);
|
||||
@@ -166,7 +166,7 @@ public class Crc16Ibm
|
||||
fs.EnsureRead(data, 0, 63);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
IChecksum ctx = new CRC16IBMContext();
|
||||
IChecksum ctx = new CRC16IbmContext();
|
||||
ctx.Update(data);
|
||||
byte[] result = ctx.Final();
|
||||
result.Should().BeEquivalentTo(_expectedRandom63);
|
||||
@@ -183,14 +183,14 @@ public class Crc16Ibm
|
||||
fs.EnsureRead(data, 0, 1048576);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
CRC16IBMContext.Data(data, out byte[] result);
|
||||
CRC16IbmContext.Data(data, out byte[] result);
|
||||
result.Should().BeEquivalentTo(_expectedRandom);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void RandomFile()
|
||||
{
|
||||
byte[] result = CRC16IBMContext.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
|
||||
byte[] result = CRC16IbmContext.File(Path.Combine(Consts.TestFilesRoot, "Checksum test files", "random"));
|
||||
|
||||
result.Should().BeEquivalentTo(_expectedRandom);
|
||||
}
|
||||
@@ -206,7 +206,7 @@ public class Crc16Ibm
|
||||
fs.EnsureRead(data, 0, 1048576);
|
||||
fs.Close();
|
||||
fs.Dispose();
|
||||
IChecksum ctx = new CRC16IBMContext();
|
||||
IChecksum ctx = new CRC16IbmContext();
|
||||
ctx.Update(data);
|
||||
byte[] result = ctx.Final();
|
||||
result.Should().BeEquivalentTo(_expectedRandom);
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Aaru.Tests.Images.cdrdao.cooked;
|
||||
|
||||
[TestFixture]
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public class nosub : OpticalMediaImageTest
|
||||
public class NoSub : OpticalMediaImageTest
|
||||
{
|
||||
public override string DataFolder =>
|
||||
Path.Combine(Consts.TestFilesRoot, "Media image formats", "cdrdao", "cooked", "nosub");
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Aaru.Tests.Images.cdrdao.cooked;
|
||||
|
||||
[TestFixture]
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public class rw : OpticalMediaImageTest
|
||||
public class Rw : OpticalMediaImageTest
|
||||
{
|
||||
public override string DataFolder =>
|
||||
Path.Combine(Consts.TestFilesRoot, "Media image formats", "cdrdao", "cooked", "rw");
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Aaru.Tests.Images.cdrdao.raw;
|
||||
|
||||
[TestFixture]
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public class nosub : OpticalMediaImageTest
|
||||
public class NoSub : OpticalMediaImageTest
|
||||
{
|
||||
public override string DataFolder =>
|
||||
Path.Combine(Consts.TestFilesRoot, "Media image formats", "cdrdao", "raw", "nosub");
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Aaru.Tests.Images.cdrdao.raw;
|
||||
|
||||
[TestFixture]
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public class rw : OpticalMediaImageTest
|
||||
public class Rw : OpticalMediaImageTest
|
||||
{
|
||||
public override string DataFolder =>
|
||||
Path.Combine(Consts.TestFilesRoot, "Media image formats", "cdrdao", "raw", "rw");
|
||||
|
||||
Reference in New Issue
Block a user