✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Soit le sous-programme suivant :
int foo(int a, int b){ if (a > 10) return a + b + 2; return a - b;}
Soit le sous-programme de test suivant :
[TestMethod]public void TestFoo(){ // Arrange int val1 = 15; int val2 = 3; // Act int res = Program.Foo(val1, val2); // Audit Assert.AreEqual(20, res);}
Le test unitaire TestFoo échoue. Vrai ou faux ?