예제 #1
0
        public void SumTest3()
        {
            string hex1 = "A";
            string hex2 = "T";
            string hex;

            hex = HexInt.Add(hex1, hex2);
            Assert.AreEqual("14", hex);
        }
예제 #2
0
        public void SumTest1()
        {
            string hex1 = "A";
            string hex2 = "A";
            int    dec;

            dec = HexInt.HexToDec(HexInt.Add(hex1, hex2));
            Assert.AreEqual(20, dec);
        }