mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-13 15:21:45 +01:00
24 lines
533 B
C#
24 lines
533 B
C#
using NFC;
|
|
using NFC.Crypto;
|
|
using NUnit.Framework;
|
|
|
|
namespace NFC_Unit_Test.Crypto
|
|
{
|
|
[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);
|
|
}
|
|
}
|
|
}
|