Пример #1
0
        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");
        }
Пример #2
0
 public KaratsubyMultiplyResult(int[] result, MultiplyStatistics statistics)
 {
     Result     = result;
     Statistics = statistics;
 }