Skip to content

Instantly share code, notes, and snippets.

@PaulCampbell
Created May 15, 2012 17:31
Show Gist options
  • Save PaulCampbell/2703514 to your computer and use it in GitHub Desktop.
Save PaulCampbell/2703514 to your computer and use it in GitHub Desktop.
[Test]
public void proclaimer_falls_down_at_door()
{
var proclaimer = nSubstitue.For<IProclaimer>();
proclaimer.Walk500Miles().Returns("One thousand miles walked");
var door = nSubstitue.For<IDoor>();
var sut = new ProclaimerGoesAboutHisBusinessService(proclaimer, door);
sut.Execute();
door.Received().SomeoneFellDown(proclaimer);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment