UserDefaults instance for unit testing?

前端 未结 0 752
孤街浪徒
孤街浪徒 2020-12-08 07:43

I have a class which I want to test. It uses UserDefaults in its logic. I know I have to inject a test double to test it, but I want to make it without too much effort.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题