title: NUnit: What is the most concise way to assert whether an IEnumerable contains an object of a certain type?
body: <p>I have a method named <em>RenderContent</em> which returns <code>object[]</code><br>
  In my unit test, I need to assert that this array does not contain any objects of type <code>VerifyRequest</code>  </p>
  
  <p>At the moment, I'm using the following <code>Assert</code> statement. Is there anything more concise?</p>
  
  <pre><code>Assert.That(
      domain.RenderContent().OfType&lt;VerifyRequest&gt;().Count(),
      Is.EqualTo(0)
  );
  </code></pre>
  
  <p>I prefer to use fluent syntax. Note also that <em>RenderContent</em> returns <code>object[]</code>, not <code>IQueryable&lt;object&gt;</code>.</p>