是否可以模拟应用程序NSBundle以在TDD期间返回可预测的结果?例如:我想测试我的应用程序在文件未保存到NSBundle时的处理情况://MethodtotestfuncgetProfileImage()->UIImage{ifletprofileImagePath=getProfilePhotoPath(){UIImage(contentsOfFile:profileImagePath)}returnUIImage(named:"defaultProfileImage")}privatefuncgetProfilePhotoPath()->String?{returnNSBund