DEV Community

Discussion on: Refactoring C# Unit Tests

Collapse
telexen profile image
Jake C

Some great stuff here. I always appreciate using plain private functions to simplify new test data each test over a single shared setup.

Also check out AutoFixture. I don't know if Bogus has this feature, but it can also generate data as theory parameters to help avoid unimportant clutter in the test.

Collapse
integerman profile image
Matt Eland Author

Yeah, I'm going to write a separate article on AutoFixture. It's like Bogus on Wheaties!