 In generic xUnit, a "test fixture" is all the things that must be in place in order to run a test and expect a particular outcome.Frequently fixtures are created by handling "setUp()" and "tearDown()" events of the unit testing framework.In "setUp()" one would create the expected state for the test and in "tearDown()" it would clean up what had been set up.