public static IClassMetadata that_returns_property_names( this IClassMetadata dependency, string[] propertyNames) { dependency.Stub(x => x.PropertyNames) .Return(propertyNames); return(dependency); }