//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldSampleTheIndexButDoNotStoreTheValuesIfTheIndexIsNotOnline() public virtual void ShouldSampleTheIndexButDoNotStoreTheValuesIfTheIndexIsNotOnline() { // given OnlineIndexSamplingJob job = new OnlineIndexSamplingJob(_indexId, _indexProxy, _indexStoreView, "Foo", _logProvider); when(_indexProxy.State).thenReturn(FAILED); // when job.Run(); // then verifyNoMoreInteractions(_indexStoreView); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldSampleTheIndexAndStoreTheValueWhenTheIndexIsOnline() public virtual void ShouldSampleTheIndexAndStoreTheValueWhenTheIndexIsOnline() { // given OnlineIndexSamplingJob job = new OnlineIndexSamplingJob(_indexId, _indexProxy, _indexStoreView, "Foo", _logProvider); when(_indexProxy.State).thenReturn(ONLINE); // when job.Run(); // then verify(_indexStoreView).replaceIndexCounts(_indexId, _indexUniqueValues, _indexSize, _indexSize); verifyNoMoreInteractions(_indexStoreView); }