Skip to content

Instantly share code, notes, and snippets.

@ashic
Created July 4, 2011 15:03
Show Gist options
  • Save ashic/1063445 to your computer and use it in GitHub Desktop.
Save ashic/1063445 to your computer and use it in GitHub Desktop.
public class when_withdrawing_money_from_empty_account
{
Establish context = ()=> depositor = new Depositor(13);
Because of = ()=> depositor.Withdraw(50.0m);
It should_decrease_balance = ()=> depositor.Balance.ShouldBeGreaterThan(0.01m);
It should_have_account_open = ()=> depositor.AccountIsOpen.ShouldBeTrue();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment