public SetTokenStream ( Lucene.Net.Analysis.TokenStream tokenStream ) : void | ||
tokenStream | Lucene.Net.Analysis.TokenStream | |
Результат | void |
private void TrySetTokenStreamValue(Field f) { try { f.SetTokenStream(new CannedTokenStream(new Token("foo", 0, 3))); Assert.Fail(); } catch (Exception expected) when(expected.IsIllegalArgumentException()) { // expected } }
private void TrySetTokenStreamValue(Field f) { try { f.SetTokenStream(new CannedTokenStream(new Token("foo", 0, 3))); Assert.Fail(); } #pragma warning disable 168 catch (System.ArgumentException expected) #pragma warning restore 168 { // expected } }