public override void Write(IntRecord record, PageCursor cursor, int recordSize)
 {
     for (int i = 0; i < outerInstance.intsPerRecord; i++)
     {
         cursor.PutInt(record.Value);
     }
 }
 public override void Read(IntRecord record, PageCursor cursor, RecordLoad mode, int recordSize)
 {
     for (int i = 0; i < outerInstance.intsPerRecord; i++)
     {
         record.Value = cursor.Int;
     }
     record.InUse = true;
     MaybeSetCursorError(cursor, record.Id);
 }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void scanForHighIdMustThrowOnPageOverflow() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ScanForHighIdMustThrowOnPageOverflow()
        {
            CreateStore();
            _store.StoreNotOk = new Exception();
            IntRecord record = new IntRecord(200);

            record.Value = unchecked (( int )0xCAFEBABE);
            _store.updateRecord(record);
            _intsPerRecord = 8192;
            AssertThrowsUnderlyingStorageException(() => _store.makeStoreOk());
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void rebuildIdGeneratorSlowMustThrowOnPageOverflow() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void RebuildIdGeneratorSlowMustThrowOnPageOverflow()
        {
            _config.augment(GraphDatabaseSettings.rebuild_idgenerators_fast, "false");
            CreateStore();
            _store.StoreNotOk = new Exception();
            IntRecord record = new IntRecord(200);

            record.Value = unchecked (( int )0xCAFEBABE);
            _store.updateRecord(record);
            _intsPerRecord = 8192;
            AssertThrowsUnderlyingStorageException(() => _store.makeStoreOk());
        }