The given-expect testing pattern(www.bugfree.dk)
submitted by
rholm(115) 2 years ago
I was watching Brett Schuchert’s TDD screencast on implementing the shunting yard algorithm in C#. In it Brett builds up his tests in a style I hadn’t come across before. Each test is expressed as a given-expect statement. A pattern particularly useful in situations in which a class has a main method that accepts an open-ended number of dissimilar inputs.
|category: Unit Testing
|Views: 6
tags:
Testing another
Everyones tags:
Your Tags: