This had me puzzled for a while this afternoon so I thought I’d put this post up.
I was trying to get an integration test running, checking to see that an object was being persisted correctly (against an im-memory SQLite database).
The test was failing with “failed: System.ApplicationException” Expected List<> but got IList<>
The problem was with the type of check I was doing. I was doing a property check but I should have been doing a “List” check.
.CheckProperty(y => y.list, myList)
.CheckList(y => y.list, myList)
Got it working.