Commerce Server 2009单元测试 [英] Commerce Server 2009 Unit Testing

查看:76
本文介绍了Commerce Server 2009单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了一些关于这些问题的文章。

I've read a few articles regarding those issue.

其中大多数都包含一些频道配置修改,其中一些不受支持。

most of them include some channel configuration modifications, some of them unsupported.

我是否可以获得在Visual Studio中创建单元测试项目的教程或说明?

Can I get a tutorial or instructions for creating unit testing projects in Visual Studio?

谢谢。

推荐答案

我的建议是使用任何MOCK框架来测试你的组件。如果你想对端到端场景进行单元测试,那么它有点棘手但是如果你只想测试组件,是的,你可以很容易地轻松实现它。我使用MOQ( http://code.google.com/p/moq/
来测试我的代码位。

My recommendation is to use any MOCK framework to test your components. If you want to unit test end to end scenarios then it is little bit tricky but if you want to test only the component, yes you can easily achieve it easily. I have used MOQ (http://code.google.com/p/moq/) to test my code bits.


这篇关于Commerce Server 2009单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆