//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void allocatePreviouslyUsedRecord() public virtual void AllocatePreviouslyUsedRecord() { DynamicRecord dynamicRecord = new DynamicRecord(1); dynamicRecord.InUse = true; ReusableRecordsAllocator recordsAllocator = new ReusableRecordsAllocator(10, dynamicRecord); DynamicRecord allocatedRecord = recordsAllocator.NextRecord(); assertSame("Records should be the same.", allocatedRecord, dynamicRecord); assertTrue("Record should be marked as used.", allocatedRecord.InUse()); assertFalse("Record should be marked as created.", allocatedRecord.Created); }
public override void CheckReference(RECORD record, DynamicRecord name, CheckerEngine <RECORD, REPORT> engine, RecordAccess records) { if (!name.InUse()) { NameNotInUse(engine.Report(), name); } else { if (name.Length <= 0) { EmptyName(engine.Report(), name); } } }