Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个附加了 ImageARBehavior 的模型,我想用单元测试对其进行测试。目前,由于需要该文件,我什至无法保存模型,因为验证错误......(我可以不使用验证通过,但这不是重点......)
It seems to me, for this cases, is to use a Mock object. Although, of course is not the best option