Пример #1
0
        public virtual void TestBogusLookupCharFilterClass()
        {
            try
            {
                CharFilterFactory.LookupClass("sdfsdfsdfdsfsdfsdf");
                fail();
            }
            catch (Exception expected) when(expected.IsIllegalArgumentException())
            {
                //
            }

            try
            {
                CharFilterFactory.LookupClass("!(**#$U*#$*");
                fail();
            }
            catch (Exception expected) when(expected.IsIllegalArgumentException())
            {
                //
            }
        }
Пример #2
0
        public virtual void TestBogusLookupCharFilterClass()
        {
            try
            {
                CharFilterFactory.LookupClass("sdfsdfsdfdsfsdfsdf");
                fail();
            }
            catch (ArgumentException)
            {
                //
            }

            try
            {
                CharFilterFactory.LookupClass("!(**#$U*#$*");
                fail();
            }
            catch (ArgumentException)
            {
                //
            }
        }
Пример #3
0
 public virtual void TestLookupCharFilterClass()
 {
     assertSame(typeof(HTMLStripCharFilterFactory), CharFilterFactory.LookupClass("HTMLStrip"));
     assertSame(typeof(HTMLStripCharFilterFactory), CharFilterFactory.LookupClass("HTMLSTRIP"));
     assertSame(typeof(HTMLStripCharFilterFactory), CharFilterFactory.LookupClass("htmlstrip"));
 }