//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void differentChunksHaveDifferentCursors() public virtual void DifferentChunksHaveDifferentCursors() { GraphDatabaseAPI database = ( GraphDatabaseAPI )(new TestGraphDatabaseFactory()).newEmbeddedDatabase(TestDirectory.storeDir()); try { RecordStorageEngine recordStorageEngine = database.DependencyResolver.resolveDependency(typeof(RecordStorageEngine)); NeoStores neoStores = recordStorageEngine.TestAccessNeoStores(); RecordStorageReader storageReader = new RecordStorageReader(neoStores); TestStoreScanChunk scanChunk1 = new TestStoreScanChunk(this, storageReader, false); TestStoreScanChunk scanChunk2 = new TestStoreScanChunk(this, storageReader, false); assertNotSame(scanChunk1.Cursor, scanChunk2.Cursor); assertNotSame(scanChunk1.StorePropertyCursor, scanChunk2.StorePropertyCursor); } finally { database.Shutdown(); } }
internal TestStoreScanChunk(StoreScanChunkIT outerInstance, RecordStorageReader storageReader, bool requiresPropertyMigration) : base(storageReader.AllocateNodeCursor(), storageReader, requiresPropertyMigration) { this._outerInstance = outerInstance; }
internal StoreScanChunk(T cursor, RecordStorageReader storageReader, bool requiresPropertyMigration) { this.Cursor = cursor; this._requiresPropertyMigration = requiresPropertyMigration; this.StorePropertyCursor = storageReader.AllocatePropertyCursor(); }