public void test06() { Int16[] input = new Int16[5]; input[0] = -1; input[1] = -32768; input[2] = 0; input[3] = 1; input[4] = 32767; I2ArraySECSItem secsItem = new I2ArraySECSItem(input); Assert.IsTrue(secsItem.getSECSItemFormatCode() == SECSItemFormatCode.I2); }
public void test05() { byte[] input = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.I2) << 2) | 0x01), 10, 255, 255, 128, 0, 0, 0, 0, 1, 127, 255 }; I2ArraySECSItem secsItem = new I2ArraySECSItem(input, 0); Assert.IsTrue(secsItem.getSECSItemFormatCode() == SECSItemFormatCode.I2); }