/// <summary>
        /// Asserts that the type has a method, with the specified bindind flags, with a signature defined by parameters.
        /// </summary>
        public static void HasMethod(Type type, BindingFlags flags, string name, params Type[] parameters)
        {
            OldAssert.IsNotNull(type, "Type is null");
            OldStringAssert.IsNonEmpty(name);

            OldAssert.IsNotNull(type.GetMethod(name, parameters),
                                "Method {0} of type {1} not found with matching arguments",
                                name,
                                type
                                );
        }
        /// <summary>
        /// Asserts that the type has a field, with the specified bindind flags, with a signature defined by parameters.
        /// </summary>
        public static void HasField(Type type, BindingFlags flags, string name)
        {
            OldAssert.IsNotNull(type, "Type is null");
            OldStringAssert.IsNonEmpty(name);

            OldAssert.IsNotNull(type.GetField(name),
                                "Field {0} of type {1} not found with binding flags {2}",
                                name,
                                type,
                                flags
                                );
        }