//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldRetrieveUpdaterFromIndexMapForExistingIndex() public virtual void ShouldRetrieveUpdaterFromIndexMapForExistingIndex() { // given _indexMap.putIndexProxy(_indexProxy1); // when IndexUpdater updater = _updaterMap.getUpdater(_schemaIndexDescriptor1.schema()); // then assertEquals(_indexUpdater1, updater); assertEquals(1, _updaterMap.size()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldCloseAllUpdaters() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldCloseAllUpdaters() { // given _indexMap.putIndexProxy(_indexProxy1); _indexMap.putIndexProxy(_indexProxy2); IndexUpdater updater1 = _updaterMap.getUpdater(_schemaIndexDescriptor1.schema()); IndexUpdater updater2 = _updaterMap.getUpdater(_schemaIndexDescriptor2.schema()); // hen _updaterMap.close(); // then verify(updater1).close(); verify(updater2).close(); assertTrue("updater map must be empty", _updaterMap.Empty); }