NUnit尝试测试业务逻辑功能时出现的问题 [英] NUnit Issue when try to test the business Logic function

查看:97
本文介绍了NUnit尝试测试业务逻辑功能时出现的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部问候当我想使用模拟测试检查BusinnesLogic时.它不嘲笑一点意味着当我模拟插入时仍然将其插入到数据库中,任何人都可以向我发送确切的模拟代码吗? a href ="http://msdn.microsoft.com/en-us/library/aa479010.aspx">此MSDN教程?这些概念非常容易地应用于NUnit,因为语法只有极少的不同.该文章中的经验教训"部分可能对您有所帮助.


Hello All When i want to check my BusinnesLogic using mocktesting . its not mocking atall means when i mock the insert its still insert to the DB , Can anyone pleaase send me the exact Mocking code Thanks in advance

解决方案

Have you read this MSDN Tutorial? The concepts apply quite easily across to NUnit as the syntax is only minimally different. The Lessons Learned section in that article may be of benefit to you.


这篇关于NUnit尝试测试业务逻辑功能时出现的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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