public virtual void TestInvalidArguments()
{
try
{
new FilteredQuery(null, null);
Assert.Fail("Should throw IllegalArgumentException");
}
catch (System.ArgumentException iae)
{
// pass
}
try
{
new FilteredQuery(new TermQuery(new Term("field", "one")), null);
Assert.Fail("Should throw IllegalArgumentException");
}
catch (System.ArgumentException iae)
{
// pass
}
try
{
new FilteredQuery(null, new PrefixFilter(new Term("field", "o")));
Assert.Fail("Should throw IllegalArgumentException");
}
catch (System.ArgumentException iae)
{
// pass
}
}