title: FluentAssertions Type check
body: <p>I try to use <strong>FluentAssertions</strong> to check in my UnitTest, that the type of a property in a list of items is of a certain type.</p>
  <pre><code>myObj.Items.OfType&lt;TypeA&gt;().Single()
              .MyProperty1.GetType()
                  .Should().BeOfType&lt;TypeB&gt;();
  </code></pre>
  <p>Unfortunately, my test fails with the following error message:</p>
  <blockquote>
  <p>Expected type to be
  TypeB,
  but found System.RuntimeType.</p>
  </blockquote>
  <p>Why does it say, that it found <code>System.RuntimeType</code>?
  I used the debugger to verify, that <code>MyProperty1</code>is of type <code>TypeB</code> and it is... am I using <code>.BeOfType&lt;&gt;</code> wrong?</p>