I’d like to execute more than one statement in the
STAssertTrue([foo doSomething] && [barDoSomethingElse], @"Should…");
Since any valid C code is also valid Objective-C; you can use the
, operator from C for a single argument, as long as you use it in parenthesis.
NSAssertNoThrow(([foo doSomething], [bar doSomethingElse]), @"Whatever");
, operator lets you composite several expressions as a single statement returning the value of the last expression.
I would advise strongly against using this in
STAssert… statements since you will loose important information about which tests that failed.