Why does TestAddition result in 12 instead o 13? It should be 5 + 1 + 7 = 13, but assert fails with
Expected: 13
But was: 12
int method(int a)
{
return 7;
}
[Test]
public void TestAddition()
{
int row = 5;
row += method(++row);
Assert.AreEqual(13, row, "Why is it twelve instead of 13?");
}