1. Create a “Class library Project” in Visual Studio.
2. Complete the project.
3. Build the project. Dll will be created in the bin\debug folder of your project.
4. Create a new Test project (Console Application) to test the project.
5. Add the project to the current solution.
6. Set the “Test Project” as the “Startup Project”.
7. Now Debug it.