public void test06() { 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.getSECSItemFormatCode() == SECSItemFormatCode.I8); }
public void test05() { 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.getSECSItemFormatCode() == SECSItemFormatCode.I8); }