FWTestCase
FWTestCase扩展,注意测试方法需标记@objc,让OC可以访问
-
同步断言方法
Declaration
Swift
public func assertTrue(_ value: Bool, _ expression: String = "", file: String = #file, line: Int = #line)
Parameters
value
断言表达式
file
文件名,默认传参
line
行数,默认传参
-
异步断言方法
Declaration
Swift
public func assertAsync(_ value: Bool, _ expression: String = "", file: String = #file, line: Int = #line)
Parameters
value
断言表达式
file
文件名,默认传参
line
行数,默认传参