Beispiel #1
0
        public void TestNullableInputEquals()
        {
            var department = new BankDepartment
            {
                Address = "Address1",
                Name    = "Name1"
            };

            var result = department.EqualsByNameAndAddress(null);

            Assert.IsFalse(result);
        }
Beispiel #2
0
        public void TestNullableNameSourceInputEquals()
        {
            var bank1 = new BankDepartment
            {
                Address = null,
                Name    = "Name1"
            };

            var result = bank1.EqualsByNameAndAddress(new BankDepartment
            {
                Name    = "Name1",
                Address = "Address1"
            });

            Assert.IsFalse(result);
        }
Beispiel #3
0
        public void TestCorrectInputEquals()
        {
            var bank1 = new BankDepartment
            {
                Address = "Address1",
                Name    = "Name1"
            };

            var result = bank1.EqualsByNameAndAddress(new BankDepartment
            {
                Name    = "Name1",
                Address = "Address1"
            });

            Assert.IsTrue(result);
        }