There's an old test that neatly makes this point.
以前有个测试很好地说明了这一点。
The old test tried printing the object without the setup, caught the exception if it occurred, then printed with the setup if needed (and gave a message about what happened).
老的测试会试图不借助设置去打印对象,如果发生异常则捕获之,然后如果需要的话借助设置再去打印(并给出一个关于所发生事情的消息)。
The old test tried printing the object without the setup, caught the exception if it occurred, then printed with the setup if needed (and gave a message about what happened).
老的测试会试图不借助设置去打印对象,如果发生异常则捕获之,然后如果需要的话借助设置再去打印(并给出一个关于所发生事情的消息)。
应用推荐