- Now that we know what unit testing is,…let's go ahead and create a project.…In Visual Studio, I'll select File, New, Project.…Make sure you've got Visual C# selected,…and you're looking for Class Library.…I'm going to call my project EssentialTraining.…This is going to automatically name my…Solution name to EssentialTraining, but I'm okay with that.…I'll go ahead and click "OK"…and Visual Studio will create my project.…
So now we've got a Class Library,…all we need next is a testing project.…To create the testing project,…I'm going to right-click on the Solution…in the Solution Explorer…and select Add, New Project.…This time I'm going to locate Test…and I'm going to select Unit Test Project.…And I'll call this project EssentialTrainingTests.…I'll click "OK"…and Visual Studio will generate my testing project.…
Now there's one last step that we need to perform…in order for this to be a working testing project.…We need to associate these two projects together…so that the tests can actually see…the classes in our class library.…
AuthorBruce Van Horn
- Writing unit tests in C#
- Working with simple and multidimensional arrays
- Managing ordered and unordered data with lists
- Evaluating conditions with if-else statements
- Using OR, AND, and NOT operators
- Building loops
- Debugging and handling exceptions
- Creating the final build of your C# project
Skill Level Beginner
C# Object-Oriented Programming Tips and Trickswith Jesse Freeman58m 39s Intermediate
1. Unit Testing and Test-Driven Development
2. Arrays and Collections
3. Flow Control
4. Exception Handling
5. Getting to Production
Next steps1m 57s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.