public void ConvertTest4() { string hex = "A"; int dec; dec = HexInt.HexToDec(hex); Assert.AreEqual(10, dec); }
public void ConvertTest3() { string hex = "1FD"; int dec; dec = HexInt.HexToDec(hex); Assert.AreEqual(509, dec); }
public void SubTest1() { string hex1 = "F"; string hex2 = "A"; int dec; dec = HexInt.HexToDec(HexInt.Subsruct(hex1, hex2)); Assert.AreEqual(5, dec); }
public void SumTest1() { string hex1 = "A"; string hex2 = "A"; int dec; dec = HexInt.HexToDec(HexInt.Add(hex1, hex2)); Assert.AreEqual(20, dec); }