<分区>
为什么 TestAddition 结果是 12 而不是 13?它应该是 5 + 1 + 7 = 13,但是断言失败了
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?");
}