Join Bruce Van Horn for an in-depth discussion in this video Running tests, part of C# Essential Training: 2 Flow Control, Arrays, and Exception Handling.
- [Instructor] My unit tests are ready to run.…So, before I run them,…I'll go ahead and come up to the tool bar here,…and I'll go ahead and click the Save All button…just to make sure that everything is currently saved…and ready to go.…And then I'll come up to Test, and I'll click Run,…and then All Tests.…This will compile our projects,…and it will build our test code and our tests for us,…and then it will present us with a Test Explorer window.…The Test Explorer window shows us the tests that were run…and which ones passed and which ones failed.…
I'll go ahead and pin this down so we can take a look at it.…So, I can see that I have one test, and it passed,…as indicated by the green check mark.…And I can actually click on this…and see details about the test.…Let's take a look at what it looks like if the test fails.…So, I'll come down to my test, and I'll change the 14…to something else, like a 16.…I'll save it, and then I'll click Run All again.…And this time it will build my tests,…and it will fail.…So the failure is indicated by the red X,…
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.