//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldCloseMultiPopulatorOnSuccessfulPopulation() public virtual void ShouldCloseMultiPopulatorOnSuccessfulPopulation() { // given NullLogProvider logProvider = NullLogProvider.Instance; TrackingMultipleIndexPopulator populator = new TrackingMultipleIndexPopulator(IndexStoreView_Fields.Empty, logProvider, EntityType.NODE, new DatabaseSchemaState(logProvider)); IndexPopulationJob populationJob = new IndexPopulationJob(populator, NO_MONITOR, false); // when populationJob.Run(); // then assertTrue(populator.Closed); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldCloseMultiPopulatorOnFailedPopulation() public virtual void ShouldCloseMultiPopulatorOnFailedPopulation() { // given NullLogProvider logProvider = NullLogProvider.Instance; IndexStoreView failingStoreView = new IndexStoreView_AdaptorAnonymousInnerClass(this); TrackingMultipleIndexPopulator populator = new TrackingMultipleIndexPopulator(failingStoreView, logProvider, EntityType.NODE, new DatabaseSchemaState(logProvider)); IndexPopulationJob populationJob = new IndexPopulationJob(populator, NO_MONITOR, false); // when populationJob.Run(); // then assertTrue(populator.Closed); }