示例#1
0
        public void test04()
        {
            sbyte[]         input    = { -1, -128, 0, 127 };
            I1ArraySECSItem secsItem = new I1ArraySECSItem(input);

            Assert.IsTrue(secsItem.getSECSItemFormatCode() == SECSItemFormatCode.I1);
        }
示例#2
0
        public void test03()
        {
            byte[]          input    = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.I1) << 2) | 0x01), 0x04, 255, 128, 0, 127 };
            I1ArraySECSItem secsItem = new I1ArraySECSItem(input, 0, 0);

            Assert.IsTrue(secsItem.getSECSItemFormatCode() == SECSItemFormatCode.I1);
        }