//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldCloseOpenedLabelScanReader() public virtual void ShouldCloseOpenedLabelScanReader() { // given System.Func <LabelScanReader> scanStore = mock(typeof(System.Func)); LabelScanReader scanReader = mock(typeof(LabelScanReader)); when(scanStore()).thenReturn(scanReader); RecordStorageReader statement = new RecordStorageReader(null, null, MockedNeoStores.basicMockedNeoStores(), null, null, mock(typeof(System.Func)), scanStore, mock(typeof(RecordStorageCommandCreationContext))); statement.Acquire(); // when LabelScanReader actualReader = statement.LabelScanReader; // then assertEquals(scanReader, actualReader); // when statement.Close(); // then verify(scanStore).get(); verifyNoMoreInteractions(scanStore); verify(scanReader).close(); verifyNoMoreInteractions(scanReader); }
internal StorageSchemaReaderSnapshot(SchemaCache schema, RecordStorageReader reader) { this._schema = schema; this._reader = reader; }