Created
May 10, 2014 10:47
-
-
Save gregoryyoung/7d001b983047c96527ac to your computer and use it in GitHub Desktop.
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
static class my_tests { | |
public Specification my_specification = new ConstructorSpecification<Account>() | |
{ | |
When = () => new Account("Jane Smith", 17), | |
Expect = | |
{ | |
account => account.AccountHolderName == "Jane Smith", | |
account => account.UniqueIdentifier == 17, | |
account => account.CurrentBalance == new Money(0m), | |
account => account.Transactions.Count() == 0 | |
} | |
}; | |
public Specification my_specification = new ConstructorSpecification<Account>() | |
{ | |
When = () => new Account("Jane Smith", 17), | |
Expect = | |
{ | |
account => account.AccountHolderName == "Jane Smith", | |
account => account.UniqueIdentifier == 17, | |
account => account.CurrentBalance == new Money(0m), | |
account => account.Transactions.Count() == 0 | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment