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

            Assert.Equal(expected, accountType.Name);
        }
Beispiel #3
0
 public void Equality(AccountNumber accountNumber)
 {
     Assert.Equal(AccountType.OfAccountNumber(accountNumber), AccountType.OfAccountNumber(accountNumber));
 }
Beispiel #4
0
 public void AppearsOnProfitAndLoss(AccountType sut, bool appearsOnProfitAndLoss)
 {
     Assert.Equal(appearsOnProfitAndLoss, sut.AppearsOnProfitAndLoss);
 }
Beispiel #5
0
 public void AppearsOnBalanceSheet(AccountType sut, bool appearsOnBalanceSheet)
 {
     Assert.Equal(appearsOnBalanceSheet, sut.AppearsOnBalanceSheet);
 }
Beispiel #6
0
 public void InequalityOperator(AccountNumber accountNumber)
 {
     Assert.False(AccountType.OfAccountNumber(accountNumber) != AccountType.OfAccountNumber(accountNumber));
 }
Beispiel #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;
 }