Fork me on GitHub

Examples

SpecsFor can be easily tailored to how you want to write tests. You can keep it old-school and skip the BDD-style syntax:

If you are a more experienced tester who prefers the BDD-way and one-assert-per-test, you can separate your Given, When, and Then steps. SpecsFor will ensure that your Given and When are only run once no matter how many Then's you have.

You can easily reuse context across test fixtures in a variety of ways. There's the typical inheritance-based approach:

If you prefer a more composable approach, you can separate your context out and apply one or more Givens in a fixture:

Ready To Test?

The easiest way to get started with SpecsFor is to install it with NuGet.

PM> Install-Package SpecsFor