コード例 #1
0
ファイル: CRC16CCITT.cs プロジェクト: arrowsmith001/Aaru
        public void EmptyFile()
        {
            byte[] result =
                CRC16CCITTContext.File(Path.Combine(Consts.TEST_FILES_ROOT, "Checksum test files", "empty"));

            result.Should().BeEquivalentTo(_expectedEmpty);
        }
コード例 #2
0
        public void Crc16EmptyFile()
        {
            byte[] result =
                CRC16CCITTContext.File(Path.Combine(Consts.TEST_FILES_ROOT, "Checksum test files", "empty"));

            Assert.AreEqual(_expectedEmpty, result);
        }
コード例 #3
0
ファイル: CRC16CCITT.cs プロジェクト: paulyc/Aaru
        public void Crc16CcittRandomFile()
        {
            byte[] result =
                CRC16CCITTContext.File(Path.Combine(Consts.TEST_FILES_ROOT, "Checksum test files", "random"));

            Assert.AreEqual(_expectedRandom, result);
        }
コード例 #4
0
ファイル: CRC16.cs プロジェクト: KailoKyra/DiscImageChef
 public void Crc16EmptyFile()
 {
     byte[] result = CRC16CCITTContext.File(Path.Combine(Consts.TestFilesRoot, "checksums", "empty"));
     Assert.AreEqual(ExpectedEmpty, result);
 }
コード例 #5
0
ファイル: CRC16.cs プロジェクト: KailoKyra/DiscImageChef
 public void Crc16RandomFile()
 {
     byte[] result = CRC16CCITTContext.File(Path.Combine(Consts.TestFilesRoot, "checksums", "random"));
     Assert.AreEqual(ExpectedRandom, result);
 }