Lucene.Net.QueryParsers.TestMultiFieldQueryParser.AssertStopQueryEquals C# (CSharp) Method

AssertStopQueryEquals() private method

private AssertStopQueryEquals ( string qtxt, string expectedRes ) : void
qtxt string
expectedRes string
return void
		private void  AssertStopQueryEquals(string qtxt, string expectedRes)
		{
			string[] fields = new string[]{"b", "t"};
			Occur[] occur = new Occur[]{Occur.SHOULD, Occur.SHOULD};
			TestQueryParser.QPTestAnalyzer a = new TestQueryParser.QPTestAnalyzer();
			MultiFieldQueryParser mfqp = new MultiFieldQueryParser(Util.Version.LUCENE_CURRENT, fields, a);
			
			Query q = mfqp.Parse(qtxt);
			Assert.AreEqual(expectedRes, q.ToString());
			
			q = MultiFieldQueryParser.Parse(Util.Version.LUCENE_CURRENT, qtxt, fields, occur, a);
			Assert.AreEqual(expectedRes, q.ToString());
		}