How can I do something like this in NUnit?
class Foo
{
int Value { get; set; }
...
}
...
ICollection<Foo> someFoos = GetSomeFoos();
Expect(List.Map(someFoos).Property("Value"), Has.Some.EqualTo(7));
List.Map()
only accepts ICollection
, not ICollection<T>
.