Created
February 25, 2011 13:22
-
-
Save forki/843770 to your computer and use it in GitHub Desktop.
Behavior configuration sample for Machine.Fakes
This file contains 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
public class Given_the_current_day_is_monday_when_identifying_my_mood : WithSubject<MoodIdentifier> | |
{ | |
static string _mood; | |
Establish context = () => With(new CurrentTime(new DateTime(2011, 2, 14))); | |
Because of = () => _mood = Subject.IdentifyMood(); | |
It should_be_pretty_bad = () => _mood.ShouldEqual("Pretty bad"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment