Exemplo n.º 1
0
        public void GetDifference_Returns_Difference_Of_Two_Numbers_That_Results_In_Zero()
        {
            var number1 = 888;
            var number2 = 888;

            LargeNumberMath.GetDifference(number1.ToString(), number2.ToString())
                .Should().Be((number1 - number2).ToString());
        }
Exemplo n.º 2
0
        public void GetDifference_Returns_Difference_Of_Two_Numbers_That_Results_In_A_Negative_Number()
        {
            var number1 = 103;
            var number2 = 6983;

            LargeNumberMath.GetDifference(number1.ToString(), number2.ToString())
                .Should().Be((number1 - number2).ToString());
        }
Exemplo n.º 3
0
        public void GetDifference_Returns_Difference_Of_Two_Numbers()
        {
            var number1 = 348002001;
            var number2 = 968;

            LargeNumberMath.GetDifference(number1.ToString(), number2.ToString())
                .Should().Be((number1 - number2).ToString());
        }