test() private method

private test ( String input ) : bool
input String
return bool
        public static bool test(object thisob, object input)
        {
            RegExpObject obj2 = thisob as RegExpObject;

            if (obj2 == null)
            {
                throw new JScriptException(JSError.RegExpExpected);
            }
            if ((input is Missing) && !obj2.regExpConst.noExpando)
            {
                input = obj2.regExpConst.input;
            }
            return(obj2.test(Microsoft.JScript.Convert.ToString(input)));
        }
        public static bool test(Object thisob, Object input)
        {
            RegExpObject regExpObject = thisob as RegExpObject;

            if (regExpObject == null)
            {
                throw new JScriptException(JSError.RegExpExpected);
            }
            if (input is Missing && !regExpObject.regExpConst.noExpando)
            {
                input = regExpObject.regExpConst.input;
            }
            return(regExpObject.test(Convert.ToString(input)));
        }