This is because T in this class is the type of the collection, not the type of the items in the collection. I tried to add a second generic type parameter, but then the compiler couldn't infer the type parameters anymore. You then had to do stuff like collection.Should<MyCollection<string>>(). If you know a better way, let me know, but I've run out of options here.
↧