Exemplo n.º 1
0
        public void TestNullableInputEquals()
        {
            var department = new BankDepartment
            {
                Address = "Address1",
                Name    = "Name1"
            };

            var result = department.EqualsByNameAndAddress(null);

            Assert.IsFalse(result);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }