Skip to content

Instantly share code, notes, and snippets.

@gregoryyoung
Created July 4, 2011 14:51
Show Gist options
  • Save gregoryyoung/1063425 to your computer and use it in GitHub Desktop.
Save gregoryyoung/1063425 to your computer and use it in GitHub Desktop.
Sample Test From Simple.Testing
//This is a sample specification.
public SutSpecification<Depositor> when_withdrawing_money_from_empty_account = new SutSpecification<Depositor>
{
On = () => new Depositor(13),
When = depositor => depositor.Withdraw(50.00m),
Expect =
{
depositor => depositor.Balance > 0.01m,
depositor => depositor.AccountIsOpen
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment