public void TestMethodOverFlow() { BigNumber.BigNumber a = "5"; BigNumber.BigNumber b = "5"; Assert.AreEqual(true, (a + b).ToString() == "10"); }
public void TestMethodMultiply() { BigNumber.BigNumber a = "000000000000000000000000000000000000000000000000005"; BigNumber.BigNumber b = "00005"; Assert.AreEqual(true, (a * b).ToString() == "25"); }
public void TestMethodZeroAtStart() { BigNumber.BigNumber a = "000000000000000000000000000000000000000000000000005"; BigNumber.BigNumber b = "00005"; Assert.AreEqual(true, (a + b).ToString() == "10"); }
public void TestMethodRemoveZeroAtStart() { BigNumber.BigNumber a = "00000000000000000000000000000000000000000000000000"; Assert.AreEqual(true, (a).ToString() == "0"); }