How do you write tests for a system that does not return an output but changes another object’s state instead?

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Testing Side Effects

  • Gio Lodi

摘要

How do you write tests for a system that does not return an output but changes another object’s state instead?