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