小伙伴们:我正在开发一个应用程序,并通过单元测试构建它。但是,我现在处于需要测试异步调用的情况。例如,-(void)testUserInfoBecomesValidWhenUserIsBuiltSuccessfully{if(![userBuilderuserInfoUpToDate]){[userBuilderbuildUser];}STAssertTrue([userBuilderuserInfoUpToDate],@"Userinformationisnotvalidbeforebuildingtheuser");}测试此类事物的一般做法是什么?userInfoUpToDate预