public void test03() { byte[] input = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.I8) << 2) | 0x01), 40, 255, 255, 255, 255, 255, 255, 255, 255, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 127, 255, 255, 255, 255, 255, 255, 255 }; I8ArraySECSItem secsItem = new I8ArraySECSItem(input, 0); Assert.IsTrue(secsItem.getValue()[0] == -1L); Assert.IsTrue(secsItem.getValue()[1] == -9223372036854775808L); Assert.IsTrue(secsItem.getValue()[2] == 0L); Assert.IsTrue(secsItem.getValue()[3] == 1L); Assert.IsTrue(secsItem.getValue()[4] == 9223372036854775807L); }
public void test04() { Int64[] input = new Int64[5]; input[0] = -1L; input[1] = -9223372036854775808L; input[2] = 0L; input[3] = 1L; input[4] = 9223372036854775807L; I8ArraySECSItem secsItem = new I8ArraySECSItem(input); Assert.IsTrue(secsItem.getValue().SequenceEqual(input)); }