Skip to content

Instantly share code, notes, and snippets.

@dotnetchris
Created January 30, 2012 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotnetchris/1706161 to your computer and use it in GitHub Desktop.
Save dotnetchris/1706161 to your computer and use it in GitHub Desktop.
MSpec verification
static bool DoSomethingCompleted = false;
Establish context = () =>
{
The<IThing>()
.WhenToldTo(x => x.DoSomething())
.Return(()=> { DoSomethingCompleted = true; return 5; });
};
@agross
Copy link

agross commented Jan 31, 2012

The<IThing>.WasToldTo(x => x.DoSomething());

@dotnetchris
Copy link
Author

Thanks, I always keep forgetting that The<> is some kind of container that it's not just a specific instance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment