- [Narrator] Flow control is really all about…controlling how your program executes.…And the most basic way you do that…in pretty much any programming language…is what we call an if statement.…The if statement could be the most intuitive thing…that you ever see in any programming circumstance.…Let's take a look at one.…I'm going to go ahead and reduce the size of my…interactive window and I'm going to go ahead…and create a class that we're going to use…for the next few videos.…
So let's go into our Essential Training Project,…right click, select Add Class…and let's call this Flow Control.…Make sure that Class is selected,…since we've made quite a few unit tests along the way…and let's click Add.…And our Flow Control class appears over here.…I'm going to go ahead and sort of move this window…over a little bit and I'll go ahead and close…my Awesome Sauce test class for now.…
And let's take a look at how we can use an if statement.…First, let me make my class public…so that I can test it later.…And now let's create a public method,…
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.