예제 #1
0
        public void TestATLongValueToUInt32()
        {
            var value = new ATLongValue(0x11223344);

            Assert.That(value, Is.TypeOf <ATLongValue>());
            Assert.That(value.ToByteArray(), Is.EqualTo(new byte[] { 0x11, 0x22, 0x33, 0x44 }));
        }
예제 #2
0
        public void TestATLongValueToByte()
        {
            var value = new ATLongValue(0x11);

            Assert.That(value, Is.TypeOf <ATLongValue>());
            Assert.That(value.ToByteArray(), Is.EqualTo(new byte[] { 0x11 }));
        }