Articles related to AutoFixture

How To Easily Generate Data For SpecFlow Tests

I have been playing around with SpecFlow for writing tests at one of my recent clients. SpecFlow is a .NET open-source framework for Behavior Driven Development (BDD). BDD aims to create a shared understanding of how an application must behave. The Getting…

Semantic Comparison: Improve Test Assertions

One of the traits of a good unit test is to have just one Assert statement. . Consider Assert failures as symptoms of a disease and Asserts as indication points or blood checks for the body of the software. The more symptoms you can find, the easier the…

Use Tests As A Feedback Tool To Improve Code

A unit test suite provides immediate feedback when you make a change. A passing test suite gives the confidence on the changes made. It's the confidence that the team has on the tests suite that matters more than the code coverage number . Tests also provide…

Tip of the Week: AutoFixture - Make Your Unit Tests Robust

AutoFixture is an open source library for .NET designed to minimize the ' Arrange ' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test…

Populating Data for Tests

Populating data for tests is the section of the test that usually ends up making tests more coupled with the code that it is testing. Coupling makes tests more fragile and refactoring code harder because of breaking tests. We should try to avoid coupling with…