swift - How to unit test a function without a return value -


i have wrapper log system adds functionality remote logging.

the functions class functions , don't return value print log , call delegate method.

i want unit test each function calls right delegation method, methods dont return value. there way test this?

thanks

try use

readline() 

also create fake delegate test callback.


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -