//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void mustSelectCorrectTargetForAllGivenValueCombinations() public virtual void MustSelectCorrectTargetForAllGivenValueCombinations() { // given Dictionary <IndexSlot, Value[]> values = FusionIndexTestHelp.ValuesByGroup(); Value[] allValues = FusionIndexTestHelp.AllValues(); foreach (IndexSlot slot in Enum.GetValues(typeof(IndexSlot))) { Value[] group = values[slot]; foreach (Value value in group) { // when IndexProvider selected = _instanceSelector.select(_slotSelector.selectSlot(array(value), GROUP_OF)); // then assertSame(OrLucene(_providers[slot]), selected); } } // All composite values should go to lucene foreach (Value firstValue in allValues) { foreach (Value secondValue in allValues) { // when IndexProvider selected = _instanceSelector.select(_slotSelector.selectSlot(array(firstValue, secondValue), GROUP_OF)); // then assertSame(_providers[LUCENE], selected); } } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void processMustSelectCorrectForRemove() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ProcessMustSelectCorrectForRemove() { // given Dictionary <IndexSlot, Value[]> values = FusionIndexTestHelp.ValuesByGroup(); Value[] allValues = FusionIndexTestHelp.AllValues(); foreach (IndexSlot slot in Enum.GetValues(typeof(IndexSlot))) { foreach (Value value in values[slot]) { // then VerifyRemoveWithCorrectUpdater(OrLucene(_updaters[slot]), value); } } // when value is composite foreach (Value firstValue in allValues) { foreach (Value secondValue in allValues) { VerifyRemoveWithCorrectUpdater(_updaters[LUCENE], firstValue, secondValue); } } }
/* countIndexedNodes */ //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void countIndexedNodesMustSelectCorrectReader() public virtual void CountIndexedNodesMustSelectCorrectReader() { // given Dictionary <IndexSlot, Value[]> values = FusionIndexTestHelp.ValuesByGroup(); Value[] allValues = FusionIndexTestHelp.AllValues(); foreach (IndexSlot slot in Enum.GetValues(typeof(IndexSlot))) { foreach (Value value in values[slot]) { VerifyCountIndexedNodesWithCorrectReader(OrLucene(_readers[slot]), value); } } // When passing composite keys, they are only handled by lucene foreach (Value firstValue in allValues) { foreach (Value secondValue in allValues) { VerifyCountIndexedNodesWithCorrectReader(_readers[LUCENE], firstValue, secondValue); } } }
/* add */ //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void addMustSelectCorrectPopulator() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void AddMustSelectCorrectPopulator() { // given Dictionary <IndexSlot, Value[]> values = FusionIndexTestHelp.ValuesByGroup(); Value[] allValues = FusionIndexTestHelp.AllValues(); foreach (IndexSlot slot in Enum.GetValues(typeof(IndexSlot))) { foreach (Value value in values[slot]) { VerifyAddWithCorrectPopulator(OrLucene(_populators[slot]), value); } } // All composite values should go to lucene foreach (Value firstValue in allValues) { foreach (Value secondValue in allValues) { VerifyAddWithCorrectPopulator(_populators[LUCENE], firstValue, secondValue); } } }