Unit Testing how to enable - luberda-molinet/FFImageLoading GitHub Wiki

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