예제 #1
0
        public void MultiplyStringSuccess()
        {
            string num1 = "123";
            string num2 = "456";

            var result = new MultiplyStrings().Multiply(num1, num2);

            Assert.AreEqual(result, "56088");
        }
예제 #2
0
 public void Given_two_number_one_is_zero_When_multify_Then_zero()
 {
     Assert.AreEqual("0", MultiplyStrings.Multiply("123", "0"));
 }
예제 #3
0
 public void Given_two_number_When_multify_Then_return()
 {
     Assert.AreEqual("15129", MultiplyStrings.Multiply("123", "123"));
 }
예제 #4
0
 public void Given_two_number_3_10_When_multify_Then_return_30()
 {
     Assert.AreEqual("30", MultiplyStrings.Multiply("3", "10"));
 }
예제 #5
0
 public void Given_two_number_3_5_When_multify_Then_return_15()
 {
     Assert.AreEqual("15", MultiplyStrings.Multiply("5", "3"));
 }
예제 #6
0
 public void Given_two_number_one_is_one_When_multify_Then_other_one()
 {
     Assert.AreEqual("123", MultiplyStrings.Multiply("123", "1"));
 }