public void Test04() { UInt16 [] input = { 65535, 32768, 0, 1, 32767 }; U2ArraySECSItem secsItem = new U2ArraySECSItem(input); Assert.IsTrue(secsItem.GetSECSItemFormatCode() == SECSItemFormatCode.U2); }
public void Test03() { 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); }