Join Bruce Van Horn for an in-depth discussion in this video Testing the list implementation, part of C# Essential Training: 2 Flow Control, Arrays, and Exception Handling.
- [Instructor] Now that we've created…our AwesomeSauce class,…let's create a test for our AwesomeSauce.…And the first thing I'll do is,…I'll go ahead and arrange my window…the way I've been doing it so far,…which is to say I have the class on one side…and the test on the other.…Usually I put my classes on the right side…and this time I wrote it on the left side.…So let me move that over so that I am consistent.…I will drag the tab over, wait 'til I see the blue area,…and drop it there.…And, actually, why don't we clean this up a little bit.…
I'm going to close the other two classes.…And that pares things down a little bit.…So let's go into our Solution Explorer.…I'll right-click on EssentialTraining Tests…I will Add, New Item.…I'll select Test, Basic Unit Test.…And I'll call this AwesomeSauceTest.…And my AwesomeSauceTest appeared on the left side…right where I want it.…
I can now go ahead and close the other one.…And now I just have the two things…that I'm working on.…The first thing I'll do is…I'll go ahead and change the method name…
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.