Fluent Nhibernate PersistenceSpecification : failed: System.ApplicationException – Expected List but got IList

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…