public void test06() { UInt16[] input = new UInt16[5]; input[0] = 0xFFFF; input[1] = 0x8000; input[2] = 0x0000; input[3] = 0x0001; input[4] = 0x7FFF; U2ArraySECSItem secsItem = new U2ArraySECSItem(input); Assert.IsTrue(secsItem.getSECSItemFormatCode() == SECSItemFormatCode.U2); }
public void test05() { byte[] input = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.U2) << 2) | 0x01), 10, 255, 255, 128, 0, 0, 0, 0, 1, 127, 255 }; U2ArraySECSItem secsItem = new U2ArraySECSItem(input, 0); Assert.IsTrue(secsItem.getSECSItemFormatCode() == SECSItemFormatCode.U2); }