Exemple #1
0
 public void TestShortReadRedLight()
 {
     byte[] arr = new byte[sizeof(short)];
     ByteManipulator.Write(arr, 0, (short)-25);
     Assert.That(ByteManipulator.ReadInt16(arr, 0), Is.Not.EqualTo(9));
 }
Exemple #2
0
 public void TestShortRead()
 {
     byte[] arr = new byte[sizeof(short)];
     ByteManipulator.Write(arr, 0, (short)-2500);
     Assert.That(ByteManipulator.ReadInt16(arr, 0), Is.EqualTo(-2500));
 }