public static LookupClass ( string name ) : |
||
name | string | |
return |
public virtual void TestBogusLookupTokenizerClass() { try { TokenizerFactory.LookupClass("sdfsdfsdfdsfsdfsdf"); fail(); } catch (Exception expected) when(expected.IsIllegalArgumentException()) { // } try { TokenizerFactory.LookupClass("!(**#$U*#$*"); fail(); } catch (Exception expected) when(expected.IsIllegalArgumentException()) { // } }
public virtual void TestBogusLookupTokenizerClass() { try { TokenizerFactory.LookupClass("sdfsdfsdfdsfsdfsdf"); fail(); } catch (ArgumentException) { // } try { TokenizerFactory.LookupClass("!(**#$U*#$*"); fail(); } catch (ArgumentException) { // } }
public virtual void TestLookupTokenizerClass() { assertSame(typeof(WhitespaceTokenizerFactory), TokenizerFactory.LookupClass("Whitespace")); assertSame(typeof(WhitespaceTokenizerFactory), TokenizerFactory.LookupClass("WHITESPACE")); assertSame(typeof(WhitespaceTokenizerFactory), TokenizerFactory.LookupClass("whitespace")); }