title: Is it possible to create a dynamic unit test?
body: <p>I currently have some tests running, which ensure, that for every class implementing a specific interface, I got some things respected.</p>
  
  <p>This is currently running in a winform application, which allow me to give a result for every class, if they are ok or if something is wrong.</p>
  
  <p>I would like to transform this into a TestClass/TestMethod, but I currently don't see how.</p>
  
  <p>The issue is that I need to get a results for every class(or at least have an error for each individual class which is not working.</p>
  
  <p>Currently I've this piece of code:</p>
  
  <pre><code>foreach (Type type in GetTypesToCheck())
  {
      m_logger.Debug("Checking type " + type.FullName);
      FieldInfo staticField;
      dynamic definition;
      if (CheckStaticField(type, out staticField) &amp;&amp; CheckDefinitionPresent(type) &amp;&amp; CheckParentDefinition(type, staticField, out definition) &amp;&amp; CheckRegistration(type, definition) &amp;&amp;
          CheckSubTypes(type, definition))
      {
          m_logger.Information(type.FullName + ": OK");
      }
  }
  </code></pre>
  
  <p>Is there a way to make this kind of check with UnitTests and having one result per class(or multiple results for every class)?</p>