public void test03() { 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.getValue()[0] == 0xFFFFFFFFFFFFFFFF); Assert.IsTrue(secsItem.getValue()[1] == 0x8000000000000000); Assert.IsTrue(secsItem.getValue()[2] == 0x0000000000000000); Assert.IsTrue(secsItem.getValue()[3] == 0x0000000000000001); Assert.IsTrue(secsItem.getValue()[4] == 0x7FFFFFFFFFFFFFFF); }
public void test04() { 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.getValue().SequenceEqual(input)); }