score:1

how about returning the check?

mylist.foreach(x => assert.istrue(x.prop == 123));

Related Query

More Query from same tag