Esempio n. 1
0
        public void TestToByteArray()
        {
            byte[] bytes = new byte[]{1,2,3,4,5,6,7,8,9,10,11,12};
            string hex = "0102030405060708090a0b0c";

            Oid bval = new Oid(bytes);
            byte[] bytes2 = bval.ToByteArray();

            Assert.IsNotNull(bytes2);
            Assert.AreEqual(12, bytes2.Length);
            Assert.AreEqual(bytes, bytes2);
        }