예제 #1
0
 public void Test9()
 {
     try {
         Numbers.Add numbers = new Numbers.Add();
         numbers.AddTwoLargeNumbers(null, null);
         Assert.Fail();
     }
     catch (Exception) {
     }
 }
예제 #2
0
 public void Test1()
 {
     Numbers.Add numbers = new Numbers.Add();
     Assert.AreEqual(numbers.AddTwoLargeNumbers("123", "321"), "444");
 }
예제 #3
0
 public void Test6()
 {
     Numbers.Add numbers = new Numbers.Add();
     Assert.AreEqual(numbers.AddTwoLargeNumbers("1000000000000000000000000000000000000000", "1000000000000000000000000000000000000000"), "2000000000000000000000000000000000000000");
 }
예제 #4
0
 public void Test8()
 {
     Numbers.Add numbers = new Numbers.Add();
     Assert.AreEqual(numbers.AddTwoLargeNumbers("9999999999999999999999999999999999999999", "9999999999999999999999999999999999999999"), "19999999999999999999999999999999999999998");
 }
예제 #5
0
 public void Test2()
 {
     Numbers.Add numbers = new Numbers.Add();
     Assert.AreEqual(numbers.AddTwoLargeNumbers("1234", "321"), "1555");
 }