Test Fixture Introduction

Reduce duplication by using a test fixture. Let’s look at the basic syntax.

Session Outline

Connect: Duplication and Readability

Concept: Test Fixture

Explain what it is, show them the documentation for the language and framework you’re using.

Concrete: Convert duplication to fixture

In RecentlyUsedList, or RecentlyUsedList there are several tests which share common code. Explain the problem and give them some pointers about how to refactor the tests to use a test fixture.


Note down in your own words what you learnt about a custom assert and a test fixture.