-
Notifications
You must be signed in to change notification settings - Fork 15
Home
Jeffrey T. Fritz edited this page Feb 10, 2016
·
7 revisions
Learn how to use this test harness to help you test your ASP.NET Web Forms code.
Get started by creating a new project for use with your favorite unit test framework in the same solution as your ASP.NET web project containing the web forms that you want to exercise. Within this class library, called MyTestProjectName
in this sample, add your favorite unit-test framework (mine is xUnit) and the test-harness with NuGet by entering the following commands in the NuGet Package Manager Console:
Install-Package xunit -ProjectName MyTestProjectName
Install-Package WebFormsTest -ProjectName MyTestProjectName
You do not need to make any changes to your web application, as the WebFormsTest library is able to reach into your application and act as the web server that is hosting the application.