borepin/NFC_Test/Crypto/CRC16_Test.cs

24 lines
528 B
C#
Raw Normal View History

using NFC;
using NFC.Crypto;
using NUnit.Framework;
namespace NFC_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);
}
}
}