Beispiel #1
0
        public void X2XTest02()
        {
            // 测试36进制转16进制,16进制转32进制
            var string36       = "hb20211102";
            var string2        = BinaryConvert.X2X(string36, 36, 2);
            var string36_after = BinaryConvert.X2X(string2, 2, 36);

            Debug.WriteLine("------------------------------------------------------------");
            Debug.WriteLine("string2:" + string2);
            Assert.AreEqual(string36, string36_after);
        }
Beispiel #2
0
        public void X2XTest()
        {
            // 测试36进制转16进制,16进制转32进制
            var string36       = "hb20211102";
            var string16       = BinaryConvert.X2X(string36, 36, 16);
            var string36_after = BinaryConvert.X2X(string16, 16, 36);

            Console.WriteLine("------------------------------------------------------------");
            Console.WriteLine("string16:" + string16);
            Assert.AreEqual(string36, string36_after);
        }