The source code also includes other public and private methods and classes.
源代码还提供了其他公共和私有方法以及类。
This code USES the private methods to retrieve an object from the pool and call the provided delegate.
该代码使用私有方法从池中检索对象,并且调用所提供的委托。
I'll also address some other sticky design questions about TDD, such as if and when to test private methods.
我还将解答其他某些棘手的TDD设计问题,例如是否测试及何时测试私有方法。
Sometimes the code is very obviously unreachable (uncalled private methods, unread local variables, and so forth).
有时候,这些代码是明显不可达的(未调用的私有方法以及未读入的本地变量,等等)。
In particular, being able to change a few private methods to public would have made this code a lot easier to write.
特别是将一些私有方法变成公有方法能够使这个代码编写起来更容易。
Keep in mind also that using reflection to invoke private methods does introduce a level of brittleness to the resulting tests.
还请记住,使用反射调用private方法会对生成的结果带来一定程度的脆弱性。
The populate method is much shorter now, and it reads like an outline of the tasks it needs to perform, with the task implementation residing in private methods.
populate方法现在短多了,看起来像是它需要执行的任务的大纲,任务的实现都放在私有方法中。
The populate method is much shorter now, and it reads like an outline of the tasks it needs to perform, with the task implementation residing in private methods.
populate方法现在短多了,看起来像是它需要执行的任务的大纲,任务的实现都放在私有方法中。
应用推荐