コード例 #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()
        {
            PropertyRecord record1 = new PropertyRecord(1);

            record1.Initialize(true, 1, 2);
            record1.SecondaryUnitId = 42;

            PropertyRecord record2 = record1.Clone();

            PropertyCheckType check = new PropertyCheckType();

            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()
        {
            PropertyRecord record1 = new PropertyRecord(1);

            record1.Initialize(false, 1, 2);
            record1.SecondaryUnitId = 42;

            PropertyRecord record2 = new PropertyRecord(1);

            record2.Initialize(false, 11, 22);
            record2.SecondaryUnitId = 24;

            PropertyCheckType check = new PropertyCheckType();

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