Lucene.Net.QueryParsers.TestQueryParser.TestProtectedCtors C# (CSharp) Method

TestProtectedCtors() private method

private TestProtectedCtors ( ) : void
return void
		public virtual void  TestProtectedCtors()
		{
            // If the return type is not null, then fail the assertion.
		    Assert.IsNull(typeof (QueryParser).GetConstructor(new System.Type[] {typeof (ICharStream)}),
		                  "please switch public QueryParser(CharStream) to be protected");

            // Same for the constructor for the constructor with the query parser token manager.
            Assert.IsNull(typeof(QueryParser).GetConstructor(new System.Type[] { typeof(QueryParserTokenManager) }),
                          "please switch public QueryParser(QueryParserTokenManager) to be protected");
		}