public void HexToDecimal() { Assert.AreEqual(Convertor.AnyToDecimal("0x1A2C", Base.Hex), "6700"); Assert.AreEqual(Convertor.AnyToDecimal("0x123", Base.Hex), "291"); }
public void BinaryToDecimal() { Assert.AreEqual(Convertor.AnyToDecimal("101101", Base.Binary), "45"); }
public void OctalToDecimal() { Assert.AreEqual(Convertor.AnyToDecimal("430", Base.Octal), "280"); Assert.AreEqual(Convertor.AnyToDecimal("0430", Base.Octal), "280"); }