title: FluentAssertions: check a list contains an object, excluding a property
body: <p>I have several Event classes which implement IEvent.
  To check actual event against expected event I use</p>
  
  <pre><code>actualEvent.ShouldBeEquivalentTo(expectedEvent,opt =&gt; opt.RespectingRuntimeTypes()
                                                           .Excluding(e =&gt; e.DateCreated));
  </code></pre>
  
  <p>The events have a DateCreated property which I ignore as the actual and expected are created at different times.</p>
  
  <p>How do I check if expectedEvent exists at least once in a list of actualEvents?</p>
  
  <p>I would like to do the following;</p>
  
  <pre><code>actualEvents.Should().Contain(expectedEvent,opt =&gt; opt.RespectingRuntimeTypes()
                                                        .Excluding(e =&gt; e.DateCreated));
  </code></pre>
  
  <p>but it is not possible.</p>
  
  <p>Can this be done in fluentassertions?</p>