Skip to content

Instantly share code, notes, and snippets.

@dotnetchris
Created January 30, 2012 19:30
Show Gist options
  • Select an option

  • Save dotnetchris/1706161 to your computer and use it in GitHub Desktop.

Select an option

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

agross commented Jan 31, 2012

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

@dotnetchris

Copy link
Copy Markdown
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