Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void inUseRecordEquality()
        public virtual void InUseRecordEquality()
        {
            RelationshipRecord record1 = new RelationshipRecord(1);

            record1.Initialize(true, 1, 2, 3, 4, 5, 6, 7, 8, true, false);
            record1.SecondaryUnitId = 42;

            RelationshipRecord record2 = record1.Clone();

            RelationshipCheckType check = new RelationshipCheckType();

            assertTrue(check.Equal(record1, record2));
        }
Пример #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void notInUseRecordEquality()
        public virtual void NotInUseRecordEquality()
        {
            RelationshipRecord record1 = new RelationshipRecord(1);

            record1.Initialize(false, 1, 2, 3, 4, 5, 6, 7, 8, true, false);
            record1.SecondaryUnitId = 42;

            RelationshipRecord record2 = new RelationshipRecord(1);

            record2.Initialize(false, 11, 22, 33, 44, 55, 66, 77, 88, false, true);
            record2.SecondaryUnitId = 24;

            RelationshipCheckType check = new RelationshipCheckType();

            assertTrue(check.Equal(record1, record2));
        }