public void Multiply_TwoBigIntegers_ReturnsCorrectResult(string left, string right, string expectedResult)
        {
            KaratsubyMultiplyResult multiplyResult = KaratsubyMethod.Multiply(left, right);
            string calculatedValue = String.Join("", multiplyResult.Result);

            Assert.That(calculatedValue, Is.EqualTo(expectedResult));

            MultiplyStatistics statistics = multiplyResult.Statistics;
            int valueOf105 = statistics.TryGetAdbcCount("105");
            int valueOf72  = statistics.TryGetAdbcCount("72");
            int valueOf12  = statistics.TryGetAdbcCount("12");
        }
Exemple #2
0
 public KaratsubyMultiplyResult(int[] result, MultiplyStatistics statistics)
 {
     Result     = result;
     Statistics = statistics;
 }