Skip to content

Instantly share code, notes, and snippets.

@mat-mcloughlin
Created September 1, 2014 13:42
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 mat-mcloughlin/cf10e4aa5c2f60ef83eb to your computer and use it in GitHub Desktop.
Save mat-mcloughlin/cf10e4aa5c2f60ef83eb to your computer and use it in GitHub Desktop.
Testing idea
var decision = "Dave".DecidesTo<InviteToLobby>();
decision.ProvidedDataIs("something");
decision.NewKnowledgeIs<InvitedToLobby>((e) => e.Something.ShouldBe("test"));
decision.IsAvailableWhen(() => new TestTopicInValidState());
decision.IsntAvailableWhen<ExpectedException>(() => new TestTopicInInvalidState());
decision.IsntAvailableWhen<ExpectedException>(() => new TestTopicInADifferentInvalidState());
@beyond-code-github
Copy link

Knowledge is powah

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