direct test of account balance 帐户余额的直接抽查
That is, we no longer check that the final balance of the test account is correct; we would check that function in the unit test for the Transaction object, not the AtmGui object.
也就是说,我们不再检查测试帐户的最终余额是否正确;我们将在对Transaction对象的单元测试中检查该函数,而不是在对atmgui对象的单元测试中。
Instead, the unit test must take this into account.
相反,单元测试必须要考虑到这一点。
Both test methods instantiate an Account.
这两种测试方法都例示一个Account。
应用推荐