//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void testNonBMPChar() throws Exception public virtual void testNonBMPChar() { CharFilter cs = new MappingCharFilter(normMap, new StringReader(UnicodeUtil.newString(new int[] { 0x1D122 }, 0, 1))); TokenStream ts = new MockTokenizer(cs, MockTokenizer.WHITESPACE, false); assertTokenStreamContents(ts, new string[] { "fclef" }, new int[] { 0 }, new int[] { 2 }, 2); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: @Override public void setUp() throws Exception public override void setUp() { base.setUp(); NormalizeCharMap.Builder builder = new NormalizeCharMap.Builder(); builder.add("aa", "a"); builder.add("bbb", "b"); builder.add("cccc", "cc"); builder.add("h", "i"); builder.add("j", "jj"); builder.add("k", "kkk"); builder.add("ll", "llll"); builder.add("empty", ""); // BMP (surrogate pair): builder.add(UnicodeUtil.newString(new int[] { 0x1D122 }, 0, 1), "fclef"); builder.add("\uff01", "full-width-exclamation"); normMap = builder.build(); }