示例#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()
        {
            NodeRecord record1 = new NodeRecord(1);

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

            NodeRecord record2 = record1.Clone();

            NodeCheckType check = new NodeCheckType();

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

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

            NodeRecord record2 = new NodeRecord(1);

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

            NodeCheckType check = new NodeCheckType();

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