logo

Crowdly

Soit le sous-programme suivant : int foo(int a, int b) {   if (a > 10)    ...

✅ 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 ?

0%
100%
More questions like this

Want instant access to all verified answers on pedag.u-picardie.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome