排列-Act-Assert 模式
单选题 简单
题目
In 排列-Act-Assert 模式, 什么 happens in 'Act' phase?
提示
排列 = 设置, Act = 做 thing, Assert = 检查 result.
解释
AAA 模式有 three phases: 排列 (设置数据 and dependencies), Act (invoke code under 测试 and capture 输出), and Assert (验证输出 matches expected 值). Act phase 是哪里实际 behavior 是 tested 是 triggered.
相关资源
相关课程
- 单元测试
编写 effective 单元测试.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。