title: Mocking attributes - C#
body: <p>I use custom Attributes in a project and I would like to integrate them in my unit-tests.</p>
  
  <p>Now I use Rhino Mocks to create my mocks but I don't see a way to add my attributes (and there parameters) to them.</p>
  
  <p>Did I miss something, or is it not possible? Other mocking framework? Or do I have to create dummy implementations with my attributes?</p>
  
  <p>example: I have an interface in a plugin-architecture (IPlugin) and there is an attribute to add meta info to a property. Then I look for properties with this attribute in the plugin implementation for extra processing (storing its value, mark as gui read-only...)</p>
  
  <p>Now when I create a mock can I add easily an attribute to a property or the object instance itself?</p>
  
  <p>EDIT: I found a post with the same question -> <a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001581" rel="nofollow noreferrer">link</a>. The answer there is not 100% and it is Java...</p>
  
  <p>EDIT 2: It can be done... searched some more (on SO) and found 2 related questions (+ answers)</p>
  
  <p><a href="https://stackoverflow.com/questions/129285/can-attributes-be-added-dynamically-in-c">here</a> and <a href="https://stackoverflow.com/questions/268426/how-do-i-add-attributes-to-a-method-at-runtime">here</a></p>
  
  <p>Now, is this already implemented in one or another mocking framework?</p>