Join Anton Delsink for an in-depth discussion in this video TextReader as base of StreamReader and StringReader, part of Object Oriented Programming with C#.
- [Instructor] We've seen how the interfaces…IEnumerable and IDisposible made…for convenient keywords…that write a lot of code for us behind the scenes…and thus make the code relatively easy to read…and in fact fairly elegant when it comes…to how much work is happening behind the scenes,…but we're not quite done.…That's just a pair of interfaces making life easier for us.…We can do more interesting things,…especially when you consider the test scenario…that we're looking at.…We're currently reading a file.…So I'll copy and paste the method 18…and then we should just note…that we are using a stream reader…to read from a file…and you'll probably write at the beginning…of this exercise,…we're struggling to figure out…what is the correct file name to use…and that's always going to be a problem in unit tests.…
So when you have external dependencies,…you're really doing external testing,…integration testing.…Often that will make your tests slower…and often it will make your tests brittle.…What can we do?…In this case the test is probably all…
- Abstract classes
- Processing text with StreamReader
- IEnumerable and yield return
- Windows Forms controls
- Windows Forms with and without the designer
- Adding, organizing, and testing forms
- Creating classes
Skill Level Intermediate
C# Object-Oriented Programming Tips and Trickswith Jesse Freeman58m 39s Intermediate
What you should know1m 10s
1. Theory vs. Practice
2. Examples from .NET
3. Examples from Windows UI
4. Examples from Board Games
5. Examples from the Web
Next steps1m 13s
- 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.