[Concern("Funds transfer")] public class when_transfering_an_amount_greater_than_the_balance_of_the_from_account : ContextSpecification { private Account _fromAccount; private Account _toAccount; protected override void Context() { _fromAccount = new Account { Balance = 1m }; _toAccount = new Account { Balance = 1m }; } [Observation] public void should_not_allow_the_transfer() { typeof(Exception).ShouldBeThrownBy(delegate { _fromAccount.Transfer(2m, _toAccount); }); } }