Jump to Content
How do I...?
Create a basic spec
Structure my specs
Set up a mock object
Verify a method was called on another object
Register a concrete type in the auto-mocking container
Reduce duplication and noise in my specs
Given, When, Then
The System Under Test (SUT)
Establishing context with 'Given'
Performing an action with 'When'
Verifying with 'Then'
The Should library
Additional "Should" assertions
Partial matching: 'ShouldLookLike' and 'LooksLike'
Fuzzy Checks with Some and Any Values
SpecsFor and mocking
Configuring mock objects
Verifying interactions with mocks
Substituting your own fake objects
Intro to context classes
Creating a configuration class
Applying a behavior to all specs
Creating a behavior
Using a behavior to define state
Wrapping a spec with a behavior
Integration testing with MongoDB
Integration testing with Entity Framework
Writing specs for ASP.NET MVC
Using SpecsFor.Mvc with Windows Authentication
Updated less than a minute ago