17 March 2019

c#basics user-defined-exceptions event-viewer unit-test TDD

toop

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

tdd_cycle

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:

Leave a comment

Design a site like this with WordPress.com
Get started