Faking Private Fields

The following sections explain how you can fake private fields.

When to Use

When a private field of an object or a class affects the unit test and you need access to that field.