[Refactor] Use collection expressions.

This commit is contained in:
2024-05-01 04:39:38 +01:00
parent f7ca79b09e
commit 134ce7041e
667 changed files with 12936 additions and 13750 deletions

View File

@@ -38,30 +38,12 @@ namespace Aaru.Tests.Checksums;
[TestFixture]
public class Crc64
{
static readonly byte[] _expectedEmpty =
{
0x60, 0x6b, 0x70, 0xa2, 0x3e, 0xba, 0xf6, 0xc2
};
static readonly byte[] _expectedRandom =
{
0xbf, 0x09, 0x99, 0x2c, 0xc5, 0xed, 0xe3, 0x8e
};
static readonly byte[] _expectedRandom15 =
{
0x79, 0x7F, 0x37, 0x66, 0xFD, 0x93, 0x97, 0x5B
};
static readonly byte[] _expectedRandom31 =
{
0xCD, 0x92, 0x01, 0x90, 0x5A, 0x79, 0x37, 0xFD
};
static readonly byte[] _expectedRandom63 =
{
0x29, 0xF3, 0x31, 0xFC, 0x90, 0x70, 0x2B, 0xF4
};
static readonly byte[] _expectedRandom2352 =
{
0x12, 0x64, 0x35, 0xDB, 0x43, 0x47, 0x76, 0x23
};
static readonly byte[] _expectedEmpty = [0x60, 0x6b, 0x70, 0xa2, 0x3e, 0xba, 0xf6, 0xc2];
static readonly byte[] _expectedRandom = [0xbf, 0x09, 0x99, 0x2c, 0xc5, 0xed, 0xe3, 0x8e];
static readonly byte[] _expectedRandom15 = [0x79, 0x7F, 0x37, 0x66, 0xFD, 0x93, 0x97, 0x5B];
static readonly byte[] _expectedRandom31 = [0xCD, 0x92, 0x01, 0x90, 0x5A, 0x79, 0x37, 0xFD];
static readonly byte[] _expectedRandom63 = [0x29, 0xF3, 0x31, 0xFC, 0x90, 0x70, 0x2B, 0xF4];
static readonly byte[] _expectedRandom2352 = [0x12, 0x64, 0x35, 0xDB, 0x43, 0x47, 0x76, 0x23];
[Test]
public void EmptyData()