public void IsValid_Example1_ReturnsTrue() { // arrange var account = new NZBankAccount(1, 902, 68389, 0); // act var result = account.IsValid(); // assert Assert.IsTrue(result); }
public void IsValid_Example2_ReturnsTrue() { // arrange var account = new NZBankAccount(8, 6523, 1954512, 1); // act var result = account.IsValid(); // assert Assert.IsTrue(result); }
public void IsValid_Example3_ReturnsTrue() { // arrange var account = new NZBankAccount(26, 2600, 320871, 32); // act var result = account.IsValid(); // assert Assert.IsTrue(result); }
public void IsValid_InvalidBranch_ReturnsFalse() { // arrange var account = new NZBankAccount(1, 9999, 0, 0); // act var result = account.IsValid(); // assert Assert.IsFalse(result); }
public void IsValid_SuffixTooLong_ReturnsFalse() { // arrange var account = new NZBankAccount(0, 0, 0, 99999); // act var result = account.IsValid(); // assert Assert.IsFalse(result); }
public void IsValid_BankAccountWithZeroes_ReturnsFalse() { // arrange var account = new NZBankAccount(0, 0, 0, 0); // act var result = account.IsValid(); // assert Assert.IsFalse(result); }
public void StaticIsValid_Example1_ReturnsTrue() { // arrange var bank = 1; var branch = 902; var accountBase = 68389; var suffix = 0; // act var result = NZBankAccount.IsValid(bank, branch, accountBase, suffix); // assert Assert.IsTrue(result); }
public void StaticIsValid_BankAccountWithZeroes_ReturnsFalse() { // arrange var bank = 0; var branch = 0; var accountBase = 0; var suffix = 0; // act var result = NZBankAccount.IsValid(bank, branch, accountBase, suffix); // assert Assert.IsFalse(result); }