Lecture overview -- Keyboard shortcut: 'u'  Previous page: Test of Object-oriented programs -- Keyboard shortcut: 'p'  Next page: Unit Test Recommendation -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 33 : 35
Object-oriented Programming in C#
Test of Object-oriented Programs
Test Driven Development

Test a little. Code a little.

  • Test driven development

    • Start by writing the test cases

      • Initially, all test cases are likely to fail

    • The test cases serve both as program specification and documentation

    • Implement the program

      • The implementation is done when all tests succeed

    • Refactor the program to improve its quality

      • Do full regression test in between each modification