unitTest.cpp 406 B

1234567891011
  1. Describe(recursion_sum)
  2. {
  3. It(test1){Assert::That(sum(1), Equals(1));}
  4. It(test2){Assert::That(sum(5), Equals(15));}
  5. It(test3){Assert::That(sum(7), Equals(28));}
  6. It(test4){Assert::That(sum(10), Equals(55));}
  7. It(test5){Assert::That(sum(12), Equals(78));}
  8. It(test6){Assert::That(sum(15), Equals(120));}
  9. It(test7){Assert::That(sum(20), Equals(210));}
  10. It(test8){Assert::That(sum(100), Equals(5050));}
  11. };