如何在mvc中进行单元测试 [英] how to make unit testing in mvc
本文介绍了如何在mvc中进行单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hii
im在Web api应用程序中使用mvc 4.0和3层即dal,bal和视图。现在我想为它实现单元测试。帮助我如何以及在何处使用实现单元测试
hii
i m using mvc 4.0 with 3 layer i.e,dal,bal,and view in Web api application.Now i want to implement unit testing for it.pls help me how and where i have to implement the unit testing
推荐答案
请查看此文档
ASP.NET MVC应用程序中的单元测试[ ^ ]
搜索Google,你会发现下面的大量内容
ASP.NET MVC:如何开始单元测试 [ ^ ]
Search Google, you'll find massive things like below
ASP.NET MVC: How to start Unit Testing[^]
也可参考: - 开发和单元测试A SP.NET MVC 2应用程序 [ ^ ]
http://www.asp.net/mvc/tutorials/older-versions/unit-testing/creating-unit-tests- for-asp-net-mvc-applications-cs [ ^ ]
http://lostechies.com/chrismissal/2010/02/05/unit-testing-simple-asp-net- mvc-controllers / [ ^ ]
also refer:-Developing and Unit Testing an ASP.NET MVC 2 Application[^]
http://www.asp.net/mvc/tutorials/older-versions/unit-testing/creating-unit-tests-for-asp-net-mvc-applications-cs[^]
http://lostechies.com/chrismissal/2010/02/05/unit-testing-simple-asp-net-mvc-controllers/[^]
这篇关于如何在mvc中进行单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文