Created
May 15, 2012 17:31
-
-
Save PaulCampbell/2703514 to your computer and use it in GitHub Desktop.
Do not mock the proclaimers... https://twitter.com/#!/ianfnelson/status/202379439164768258
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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