Esempio n. 1
0
 public void MustBe(AccountType accountType)
 {
     accountType.MustBe(accountType);
 }
Esempio n. 2
0
        public void ToStringReturnsExpectedResult(AccountType accountType)
        {
            var expected = accountType.GetType().Name;

            Assert.Equal(expected, accountType.Name);
        }
Esempio n. 3
0
 public void Equality(AccountNumber accountNumber)
 {
     Assert.Equal(AccountType.OfAccountNumber(accountNumber), AccountType.OfAccountNumber(accountNumber));
 }
Esempio n. 4
0
 public void AppearsOnProfitAndLoss(AccountType sut, bool appearsOnProfitAndLoss)
 {
     Assert.Equal(appearsOnProfitAndLoss, sut.AppearsOnProfitAndLoss);
 }
Esempio n. 5
0
 public void AppearsOnBalanceSheet(AccountType sut, bool appearsOnBalanceSheet)
 {
     Assert.Equal(appearsOnBalanceSheet, sut.AppearsOnBalanceSheet);
 }
Esempio n. 6
0
 public void InequalityOperator(AccountNumber accountNumber)
 {
     Assert.False(AccountType.OfAccountNumber(accountNumber) != AccountType.OfAccountNumber(accountNumber));
 }
Esempio n. 7
0
 public void EqualityOperator(AccountNumber accountNumber)
 {
     Assert.True(AccountType.OfAccountNumber(accountNumber) == AccountType.OfAccountNumber(accountNumber));
 }
 public InvalidAccountTypeException(AccountType expected, AccountType actual) : base(
         $"Expected an account type of '{expected.Name}', received '{actual.Name}'.")
 {
     Expected = expected;
     Actual   = actual;
 }