public void MustBe(AccountType accountType) { accountType.MustBe(accountType); }
public void ToStringReturnsExpectedResult(AccountType accountType) { var expected = accountType.GetType().Name; Assert.Equal(expected, accountType.Name); }
public void Equality(AccountNumber accountNumber) { Assert.Equal(AccountType.OfAccountNumber(accountNumber), AccountType.OfAccountNumber(accountNumber)); }
public void AppearsOnProfitAndLoss(AccountType sut, bool appearsOnProfitAndLoss) { Assert.Equal(appearsOnProfitAndLoss, sut.AppearsOnProfitAndLoss); }
public void AppearsOnBalanceSheet(AccountType sut, bool appearsOnBalanceSheet) { Assert.Equal(appearsOnBalanceSheet, sut.AppearsOnBalanceSheet); }
public void InequalityOperator(AccountNumber accountNumber) { Assert.False(AccountType.OfAccountNumber(accountNumber) != AccountType.OfAccountNumber(accountNumber)); }
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; }