问题描述
亲爱的,
我正在开发一个使用Microsoft Commerce Server 2009的项目,并发现我们无法进行单元测试,因为商业环境始终会返回空值。我想知道Pex& Moles女士是否可以帮助我们做到这一点?是否可以像使用带有Sharepoint的P& M一样以
的方式完成?
I'm working on a project which using Microsoft Commerce Server 2009 and find out that we can not do the unit-test because the commerce context always return null. I wonder if Ms Pex&Moles could help us to do that? Could it be done in the same way as using P&M with Sharepoint?
谢谢。
推荐答案
我发现Pex非常独特且非常有用。它分析代码,所有条件和值检查,并通过不同的方法参数生成具有高代码覆盖率的测试。手动操作非常困难和耗时。
I find Pex quite unique and very useful. It analyzes the code, all the conditions and value checks and generates tests with high code coverage by varying method arguments. Something that is quite hard and time consuming to do manually.
目前我已经在CS项目中实施了一个项目。它工作正常。
Currently I have implemented in one of the CS project & it worked fine.
这篇关于关于:Microsoft Pex和Moles v.s Commerce Server 2009的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!