I use the built-in C # testing classes, such as Assertand CollectionAssert. I want to verify that all objects returned by a method call have a specific value for this property.
Are there special classes for unit testing of this type, or would I just use the usual collection methods and pass the results to a regular call Assert?
eg. something like that:Assert.TrueForAll(myList,x => x.Prop == 123)
source
share