コード例 #1
0
        public void Test02()
        {
            UInt64 []       input    = { 0xFFFFFFFFFFFFFFFF, 0x8000000000000000, 0x0000000000000000, 0x0000000000000001, 0x7FFFFFFFFFFFFFFF };
            U8ArraySECSItem secsItem = new U8ArraySECSItem(input);

            Assert.AreEqual(secsItem.GetValue(), input);
        }
コード例 #2
0
        public void Test01()
        {
            byte []         input = { (byte)((SECSItemFormatCodeFunctions.GetNumberFromSECSItemFormatCode(SECSItemFormatCode.U8) << 2) | 0x01),  40,
                                      255,                                                                                                              255, 255, 255, 255, 255, 255, 255,
                                      128,                                                                                                                0,   0,   0,   0,   0,   0,   0,
                                      0,                                                                                                                  0,   0,   0,   0,   0,   0,   0,
                                      0,                                                                                                                  0,   0,   0,   0,   0,   0,   1,
                                      127,                                                                                                              255, 255, 255, 255, 255, 255, 255 };
            U8ArraySECSItem secsItem = new U8ArraySECSItem(input, 0);

            Assert.IsTrue(secsItem.GetValue() [0] == 0xFFFFFFFFFFFFFFFF);
            Assert.IsTrue(secsItem.GetValue() [1] == 0x8000000000000000);
            Assert.IsTrue(secsItem.GetValue() [2] == 0x0000000000000000);
            Assert.IsTrue(secsItem.GetValue() [3] == 0x0000000000000001);
            Assert.IsTrue(secsItem.GetValue() [4] == 0x7FFFFFFFFFFFFFFF);
        }