public void test06() { UInt64[] input = new UInt64[5]; input[0] = 0xFFFFFFFFFFFFFFFF; input[1] = 0x8000000000000000; input[2] = 0x0000000000000000; input[3] = 0x0000000000000001; input[4] = 0x7FFFFFFFFFFFFFFF; U8ArraySECSItem secsItem = new U8ArraySECSItem(input); Assert.IsTrue(secsItem.getSECSItemFormatCode() == SECSItemFormatCode.U8); }
public void test05() { byte[] input = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.U8 ) << 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 }; U8ArraySECSItem secsItem = new U8ArraySECSItem(input, 0); Assert.IsTrue(secsItem.getSECSItemFormatCode() == SECSItemFormatCode.U8); }