Example #1
0
        public void TestMethodOverFlow()
        {
            BigNumber.BigNumber a = "5";
            BigNumber.BigNumber b = "5";

            Assert.AreEqual(true, (a + b).ToString() == "10");
        }
Example #2
0
        public void TestMethodMultiply()
        {
            BigNumber.BigNumber a = "000000000000000000000000000000000000000000000000005";
            BigNumber.BigNumber b = "00005";

            Assert.AreEqual(true, (a * b).ToString() == "25");
        }
Example #3
0
        public void TestMethodZeroAtStart()
        {
            BigNumber.BigNumber a = "000000000000000000000000000000000000000000000000005";
            BigNumber.BigNumber b = "00005";

            Assert.AreEqual(true, (a + b).ToString() == "10");
        }
Example #4
0
        public void TestMethodRemoveZeroAtStart()
        {
            BigNumber.BigNumber a = "00000000000000000000000000000000000000000000000000";

            Assert.AreEqual(true, (a).ToString() == "0");
        }