Assertions are most valuable for testing operations whose results are not obvious from a quick visual inspection.
断言对于测试快速直观检查时结果不明显的操作最有价值。
All testing is performed on the interface operations of your components, which allows you to determine whether the components are correctly implemented and the references are correctly wired.
所有的测试都是在您的组件的界面操作上执行的,它允许您确定组件是否正确实现、引用是否正确连接。
Without known consumer requirements, it may be difficult to provide correct functionality and there is a danger of expending development and testing effort to produce operations that will not be used.
如果不知道使用者需求,则可能很难提供正确的功能,因此就有可能存在将开发和测试工作浪费在提供将不会使用的操作上的风险。
应用推荐