摘要
在使用ASP.NET WebForms框架开发Web应用程序时,开发人员主要的工作就是将控件拖放到页面上,然后发布网站。这种开发模式可以快速的生成Web应用程序,但并没有考虑应用程序的体系结构和可测试性。开发人员很快发现,随着项目需求的不断增长,用ASP.NET WebForms框架开发项目会面临一系列严重问题。问题之一就是无法有效的对ASP.NET WebForms项目代码进行单元测试。文中将重点探讨如何在ASP.NET WebForms项目中使用单元测试。
developing Web applications using ASP.NET WebForms framework,the developers are able to drag and drop controls onto a page and then release the site.It allowed for a very quick turn around,but at no point was architecture of the application or testability considered.Developers found that as their requirements grew and they needed to move beyond the built-in controls they faced major problems.One of these problems was testability and being unable to effectively unit test ASP.NET WebForms applications.This article will discuss how to unit test ASP.NET WebForms applications.
出处
《电子设计工程》
2014年第6期113-116,共4页
Electronic Design Engineering