AutoFixture takes its name from Fixture :
βtest equipment is all we need to conduct a test and expect a certain result. [...] Setting up a test device is the first phase of a four-phase test .
While Shared Fixture is a conceptual feature, it has many drawbacks as it makes it difficult to run tests independently of each other.
AutoFixture has been explicitly designed to provide a reusable library for creating Fixtures instead of manually encoding Fixture Objects for each new type of test context you need to create.
There are people who create one Fixture object (AutoFixture) and share it according to several testing methods, but I never understood why they do it; he almost defeats the goal of AutoFixture.
However, if you find this setting useful, by whom should I tell you to stop doing this? No matter what your boat is sailing ... However, AutoFixture was developed with the explicit option of using one Fixture instance for each test method, and I did not see any advantages for this in another way.
source share