Skip to content

Instantly share code, notes, and snippets.

@gregoryyoung
Created May 10, 2014 10:47
Show Gist options
  • Save gregoryyoung/7d001b983047c96527ac to your computer and use it in GitHub Desktop.
Save gregoryyoung/7d001b983047c96527ac to your computer and use it in GitHub Desktop.
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