Created
July 4, 2011 14:51
-
-
Save gregoryyoung/1063425 to your computer and use it in GitHub Desktop.
Sample Test From Simple.Testing
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
//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