public static MutablePropertyInfo CreateReadWrite(
            MutableType declaringType = null, string name = "UnspecifiedProperty", PropertyAttributes attributes = PropertyAttributes.None, Type type = null)
        {
            declaringType = declaringType ?? MutableTypeObjectMother.Create();
            type          = type ?? ReflectionObjectMother.GetSomeType();

            var getMethod = MutableMethodInfoObjectMother.Create(returnType: type);
            var setMethod = MutableMethodInfoObjectMother.Create(parameters: new[] { ParameterDeclarationObjectMother.Create(type) });

            return(new MutablePropertyInfo(declaringType, name, attributes, getMethod, setMethod));
        }
        private static MutableMethodInfo CreateMethod(MutableType declaringType, string name, Type[] parameterTypes, Type returnType = null)
        {
            var parameters = parameterTypes.Select((t, i) => ParameterDeclarationObjectMother.Create(t, i.ToString(CultureInfo.InvariantCulture)));

            return(MutableMethodInfoObjectMother.Create(declaringType, name, returnType: returnType, parameters: parameters));
        }