Lecture overview -- Keyboard shortcut: 'u'  Previous page: Black box testing -- Keyboard shortcut: 'p'  Next page: Example of Equivalence Partitioning (1) -- 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 15 : 35
Object-oriented Programming in C#
Test of Object-oriented Programs
Input to a Black Box Test

It is not realistic - from a combinatoric point of view - to test a program unit on all possible inputs

Therefore, the choice of input values to black box testing is an important concern

An equivalence partitioning splits a set of input values in a (small) number of classes.

It is hypothesized that it is sufficient to test the program unit on a single representative from each class

  • Include boundary representatives

    • Such as empty collections and full collections

  • Include one or more representative for invalid input

    • Typecheck and use of preconditions may eliminate this need