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.
当我使用 CodeRush 存根测试时,当我已经有 MBUnit 的 using 语句时,它会自动插入 NUnit 的 using 语句。有没有办法更改使用模板时使用的默认测试框架?如果是这样,我找不到它。
在模板中,您可以更改使用的默认测试命名空间。您还可以添加条件逻辑来检查项目是否引用 MBunit.Framework,如果是,请添加 MBUnit.Framework using 语句,否则使用 Nunit。