title: How to assert MustHaveHappend(Collection.That.Contains(object)) in fake it easy
body: <p>I have a course repository as follows in the Arrange</p>
  
  <pre><code>A.CallTo(
              () =&gt; _courseClientStatusRepository.GetTnCoursesForClientStatus()).Returns(new List&lt;CourseClientStatusCreationDto&gt;
                  {
                      new CourseClientStatusCreationDto { CourseTnId = Enums.CourseLevel.Beginner  },
                      new CourseClientStatusCreationDto { CourseTnId = Enums.CourseLevel.Intermediate, },
                      new CourseClientStatusCreationDto { CourseTnId = Enums.CourseLevel.Advanced,  }
                  }
              );
  </code></pre>
  
  <p>In the Act I have a method that calls the</p>
  
  <pre><code>void CreateClientCourseStatus(List&lt;CourseClientStatusDto&gt; courseClientStatusDto);
  </code></pre>
  
  <p>method of the <code>ICourseClientStatusRepository</code></p>
  
  <p>and in the Assert, I have the following. The first assert passes, the second and third asserts fail.</p>
  
  <pre><code>A.CallTo(
              () =&gt; _courseClientStatusRepository.CreateClientCourseStatus(A&lt;List&lt;CourseClientStatusDto&gt;&gt;.Ignored))
              .MustHaveHappened();
  
          A.CallTo(
              () =&gt; _courseClientStatusRepository.CreateClientCourseStatus(A&lt;List&lt;CourseClientStatusDto&gt;&gt;.That.Contains(A&lt;CourseClientStatusDto&gt;.Ignored)))
              .MustHaveHappened();
  
  
          A.CallTo(
              () =&gt; _courseClientStatusRepository.CreateClientCourseStatus(A&lt;List&lt;CourseClientStatusDto&gt;&gt;.That.Contains(A&lt;CourseClientStatusDto&gt;.That.Matches(
                  x =&gt; x.CourseTnId == Enums.CourseLevel.Beginner               
                  ))))
                  .MustHaveHappened();
  </code></pre>
  
  <p>I am at least expecting the second assert to pass at it's expecting an instance of an object of type CourseClientStatusDto , where its specific values are not important, hence i used the .Ignored property.</p>
  
  <p>Is there perhaps something that i'm doing wrong to assert if a collection contains a specific object (using fake it easy .mustHaveHappened() method) ?</p>