Error!
Success!

The given-expect testing pattern

0
kicks

The given-expect testing pattern  (Unpublished)

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.


Kicked By:
Drop Kicked By: