コード例 #1
0
        public void Equals_IsNotEqual_Fails()
        {
            EmployeeID employeeId1 = new EmployeeID(06, 12, 31);
            EmployeeID employeeId2 = new EmployeeID(06, 12, 12);

            Expect(employeeId1.Equals(employeeId2), Is.False);
        }
コード例 #2
0
        public void Equals_IsEqual_Passes()
        {
            EmployeeID employeeId1 = new EmployeeID(06, 12, 31);
            EmployeeID employeeId2 = new EmployeeID(06, 12, 31);

            Expect(employeeId1.Equals(employeeId2), Is.True);
        }
コード例 #3
0
        public void Equals_InputIsNull_Fails()
        {
            EmployeeID employeeId1 = new EmployeeID(06, 12, 31);

            Expect(employeeId1.Equals(null), Is.False);
        }