예제 #1
0
        public void test04()
        {
            sbyte      value    = 127;
            I1SECSItem secsItem = new I1SECSItem(value);

            Assert.IsTrue(secsItem.getValue() == value);
        }
예제 #2
0
        public void test08()
        {
            byte[]     input          = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.I1) << 2) | 0x01), 0x01, 127 };
            sbyte      expectedOutput = 127;
            I1SECSItem secsItem       = new I1SECSItem(input, 0);

            Assert.IsTrue(secsItem.getValue() == expectedOutput);
        }