﻿using BigNumbers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BigNumbersTests
{
    public class AdditionTestCase : TestCase
    {
        public override void RunCase()
        {
            var a = BigNumber.Parse("6", 8);
            var b = BigNumber.Parse("3", 8);
            AssertEql("9", (a + b).ToString());

            a = BigNumber.Parse("99", 8);
            b = BigNumber.Parse("5", 8);
            AssertEql("104", (a + b).ToString());

            a = BigNumber.Parse("6", 8);
            b = BigNumber.Parse("-3", 8);
            AssertEql("3", (a + b).ToString());

            a = BigNumber.Parse("-3", 8);
            b = BigNumber.Parse("6", 8);
            AssertEql("3", (a + b).ToString());
        }
    }
}
