public void T00_Crc16()
{
byte[] testdata1 = { 0x80, 0x12, 0x14, 0x18 };
byte[] testdata2 = { 0x80, 0x12, 0x14, 0x18 , 0x11, 0x99 };
byte[] testdata3 = { 0x80, 0x12, 0x14, 0x18 };
UInt16 chk1 = Util.Crc16.Instance.ComputeChecksum(testdata1);
UInt16 chk2 = Util.Crc16.Instance.ComputeChecksum(testdata2);
UInt16 chk3 = Util.Crc16.Instance.ComputeChecksum(testdata3);
Assert.AreEqual(chk1, chk3, "checksums for the same data should be the same");
Assert.AreNotEqual(chk1, chk2, "checksums for different data should be different");
}