Beispiel #1
0
 public void IsCalled3TimesForNumber3()
 {
     funcTester_list = new FactorialTester();
     funcTester_list.Factorielle(3);
     Assert.AreEqual(3, funcTester_list.NumberOfCalls);
 }
Beispiel #2
0
 public void TestFactorielle_4_24()
 {
     funcTester_list = new FactorialTester();
     long result = func_list.Factorielle(4);
     Assert.AreEqual(24, result, "TestFactorielle_4_24_True");
 }
Beispiel #3
0
 public void IsCalledAtLeastOnce()
 {
     funcTester_list = new FactorialTester();
     funcTester_list.Factorielle(1);
     Assert.AreNotSame(1, funcTester_list.NumberOfCalls);
 }
Beispiel #4
0
 public void TestFactorielle_3_6()
 {
     funcTester_list = new FactorialTester();
     long result = func_list.ResultFactorielle(3);
     Assert.AreEqual(6, result, "TestFactorielle_3_6_False");
 }