Esempio n. 1
0
        public void MultiplyTest_SmallNumber()
        {
            var solution = new _043_MultiplyStrings();
            var result   = solution.Multiply("123", "2");

            Assert.AreEqual("246", result);
        }
Esempio n. 2
0
        public void MultiplyTest_LargeNumber()
        {
            var solution = new _043_MultiplyStrings();
            var result   = solution.Multiply("1234567890", "987654321");

            Assert.AreEqual("1219326311126352690", result);
        }
Esempio n. 3
0
        public void MultiplyTest_LargeNumber_2()
        {
            var solution = new _043_MultiplyStrings();
            var result   = solution.Multiply("988644447352690", "988644447352690");

            Assert.AreEqual("977417843281305829149250236100", result);
        }
Esempio n. 4
0
        public void MultiplyTest_SmallNumber_2()
        {
            var solution = new _043_MultiplyStrings();
            var result   = solution.Multiply("725071900", "6478");

            Assert.AreEqual("4697015768200", result);
        }
Esempio n. 5
0
        public void MultiplyTest_MultiplyZero()
        {
            var solution = new _043_MultiplyStrings();
            var result   = solution.Multiply("123", "0");

            Assert.AreEqual("0", result);
        }
        public void MultiplyTest_SmallNumber_2()
        {
            var solution = new _043_MultiplyStrings();
            var result = solution.Multiply("725071900", "6478");

            Assert.AreEqual("4697015768200", result);
        }
        public void MultiplyTest_SmallNumber()
        {
            var solution = new _043_MultiplyStrings();
            var result = solution.Multiply("123", "2");

            Assert.AreEqual("246", result);
        }
        public void MultiplyTest_MultiplyZero()
        {
            var solution = new _043_MultiplyStrings();
            var result = solution.Multiply("123", "0");

            Assert.AreEqual("0", result);
        }
        public void MultiplyTest_LargeNumber_2()
        {
            var solution = new _043_MultiplyStrings();
            var result = solution.Multiply("988644447352690", "988644447352690");

            Assert.AreEqual("977417843281305829149250236100", result);
        }
Esempio n. 10
0
        public void MultiplyTest_LargeNumber()
        {
            var solution = new _043_MultiplyStrings();
            var result = solution.Multiply("1234567890", "987654321");

            Assert.AreEqual("1219326311126352690", result);
        }