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

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