
We learned about User-Defined-Exceptions in .NET and practiced exceptions of this type. we explored the dilemma of who should handle the exception? in our restaurant project. next topic was testing framework. what is Test framework? why do we need it? what is Test Driven Development (TDD)? . after the discussion, we created our first Unit-Test project of a calculator, and expanded it to test our UniqueListClass

More topics covered:
-
- Custom Exception ctors (+ auto generated)
- Exception serialization requirement
- Event viewer – how to find .NET exceptions?
- Test importance to maintenance
- TDD importance to development – time saver
- Test attributes: [TestClass] [TestMethod]
- Test exception: [ExpectedException( typeof(…) )]
- Assert command
Links:
-
-
- Protected unique list (HW)
- Class code: CustomExceptions – restaurant example
- Class code: Adding custom exceptions to Protected unique list
- Class code: Calculator test demo
- Class code: Adding Test to Protected unique list
- Lesson Summary Video
- Homework!
- User defined exceptions – MSDN
- C# unit test – C-Sharp corner
- What is TDD?
-