Lecture overview -- Keyboard shortcut: 'u'  Previous page: The Background and Context of Unit Testing -- Keyboard shortcut: 'p'  Next page: Test Driven Development -- 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 32 : 35
Object-oriented Programming in C#
Test of Object-oriented Programs
Test of Object-oriented programs

What are the basic challenges of testing object-oriented programs?

  • Button-up OOP development

    • Makes it natural to test the classes bottom-up

    • Bottom-up testing of classes relieves the need for stubs

  • Information hiding

    • Makes it difficult/impossible to directly observe the effect of operations on an object

  • Dynamic binding and polymorphism

    • May contribute with a lot additional independent paths

    • It is difficult to identify these paths on a static basis

    • Complicates white box testing considerably