//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testClose() public virtual void TestClose() { DynamicArrayStore store = CreateDynamicArrayStore(); ICollection <DynamicRecord> records = new List <DynamicRecord>(); store.AllocateRecordsFromBytes(records, new sbyte[10]); long blockId = Iterables.first(records).Id; foreach (DynamicRecord record in records) { store.UpdateRecord(record); } _neoStores.close(); _neoStores = null; try { store.GetArrayFor(store.GetRecords(blockId, NORMAL)); fail("Closed store should throw exception"); } catch (Exception) { // good } try { store.GetRecords(0, NORMAL); fail("Closed store should throw exception"); } catch (Exception) { // good } }