public void TestNullableInputEquals() { var department = new BankDepartment { Address = "Address1", Name = "Name1" }; var result = department.EqualsByNameAndAddress(null); Assert.IsFalse(result); }
public void TestNullableNameSourceInputEquals() { var bank1 = new BankDepartment { Address = null, Name = "Name1" }; var result = bank1.EqualsByNameAndAddress(new BankDepartment { Name = "Name1", Address = "Address1" }); Assert.IsFalse(result); }
public void TestCorrectInputEquals() { var bank1 = new BankDepartment { Address = "Address1", Name = "Name1" }; var result = bank1.EqualsByNameAndAddress(new BankDepartment { Name = "Name1", Address = "Address1" }); Assert.IsTrue(result); }