mirror of
https://gitlab.com/fabinfra/fabaccess/nfc.git
synced 2025-03-12 23:01:45 +01:00
24 lines
546 B
C#
24 lines
546 B
C#
using NFC.Helper;
|
|
using NFC.Helper.Crypto.CRC;
|
|
using NUnit.Framework;
|
|
|
|
namespace NFC_Test.Helper
|
|
{
|
|
[TestFixture]
|
|
public class CRC16_Test
|
|
{
|
|
[Test]
|
|
[Ignore("Unknown Expected Data")]
|
|
public void Caluclate()
|
|
{
|
|
byte[] data = HexConverter.ConvertFromHexString("");
|
|
byte[] crc_expected = HexConverter.ConvertFromHexString("");
|
|
|
|
CRC16 crc16 = new CRC16();
|
|
byte[] crc = crc16.Calculate(data);
|
|
|
|
Assert.AreEqual(crc_expected, crc);
|
|
}
|
|
}
|
|
}
|