Skip to content

Unit Testing how to enable

Daniel Luberda edited this page Oct 20, 2017 · 1 revision

If you want to use FFImageLoading in unit tests scenarios (using mock platform implementation), you have to enable it first - otherwise you'll get an exception. It's as easy as:

ImageService.EnableMockImageService = true;

Sample test case is here: ImageServiceBaseTests.cs