public void Boost_WhenBoostIsLessThanZero_ThrowsArgumentOutOfRangeException() { var query = new TermQuery("theterm"); Assert.Throws <ArgumentOutOfRangeException>(() => query.Boost(-.1)); }