コード例 #1
0
        public void Test02()
        {
            UInt16 []       input    = { 65535, 32768, 0, 1, 32767 };
            U2ArraySECSItem secsItem = new U2ArraySECSItem(input);

            Assert.AreEqual(secsItem.GetValue(), input);
        }
コード例 #2
0
        public void Test01()
        {
            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.GetValue() [0] == 65535);
            Assert.IsTrue(secsItem.GetValue() [1] == 32768);
            Assert.IsTrue(secsItem.GetValue() [2] == 0);
            Assert.IsTrue(secsItem.GetValue() [3] == 1);
            Assert.IsTrue(secsItem.GetValue() [4] == 32767);
        }