コード例 #1
0
        public void NonNumber_Characters_Throws_Exception()
        {
            Action invalidExecution = () => KaratsubaMultiplication.Calculate("1s", "1");

            Assert.Throws <ArgumentException>(invalidExecution);
        }
コード例 #2
0
        public void Multiply_Complex_Values(string firstNumber, string secondNumber, int expectedResult)
        {
            var result = KaratsubaMultiplication.Calculate(firstNumber, secondNumber);

            Assert.Equal(expectedResult, result);
        }