title: check method for custom attribute
body: <p>I'm not sure why the below method always returns false</p>
  
  <pre><code>        // method to check for presence of TestCaseAttribute
      private static bool hasTestCaseAttribute(MemberInfo m)
      {
          foreach (object att in m.GetCustomAttributes(true))
          {
              Console.WriteLine(att.ToString());
              if (att is TestCase.TestCaseAttribute) // also tried if (att is TestCaseAttribute)
              {
                  return true;
              }
          }
          return false;
  
      }
  </code></pre>
  
  <p>even though the console output looks like this:</p>
  
  <pre><code>TestCase.DateAttribute
  TestCase.AuthorAttribute
  TestCase.TestCaseAttribute
  </code></pre>
  
  <p>What am I missing here?</p>
  
  <p>Edit;  this approach seems to work...  </p>
  
  <pre><code>  private static bool hasTestCaseAttribute(MemberInfo m)
      {
          if (m.GetCustomAttributes(typeof(TestCaseAttribute), true).Any())
          {
              return true;
          }
          else
          {
              return false;
          }
      }
  </code></pre>