What is unit level testing in ASP NET?
The first level of testing an ASP.Net project is unit level testing. This test is the functionality of an application. The testing is conducted to ensure that the application behaves as expected. In ASP.Net, the first task is to create a test project in Visual Studio. The test project will contain the necessary code to test the application.
Is it possible to unit test the fileupload control in ASP NET?
TDD is writing tests first - in your case, you have already written your application. Well, you definitely can't unit test the event handlers and other out bound stuff in ASP.NET like in your case the FileUpload control. Moreover you don't need to write unit test for fileupload control rather just check postivie/negative cases of the main logic.
Can I unit test the event handlers in ASP NET?
FYI, your question is about unit testing, not TDD. TDD is writing tests first - in your case, you have already written your application. Well, you definitely can't unit test the event handlers and other out bound stuff in ASP.NET like in your case the FileUpload control.
How do I add a unit test project?
To add a unit test project, right-click your solution and select Add and New Project. Select Test in the left pane, and select Unit Test Project for the project type. Name the project StoreApp.Tests. You will see the unit test project in your solution. In the unit test project, add a project reference to the original project.