O'Reilly logo

Microsoft Visual Studio 2015 Unleashed, Third Edition by Mike Snell, Lars Powers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing Web Applications

Modern web applications separate user experience markup from the code that responds to requests and serves views to the user. This separation makes web code much more testable (as opposed to code files mixed with markup and server-side code). As an example, the ASP.NET Model-View-Controller (MVC) and web application programming interface (API) models use controllers as C# classes to respond to Hypertext Transfer Protocol (HTTP) requests and return results. This structure makes writing unit tests against controller classes a straightforward process.

There are times, however, when you need to write tests against actual pages running on the web server. Visual Studio supports this scenario, too, allowing you to write tests ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required