public void ShouldNotUpdateTheCacheWhenFetchingFails() { var mockFetchRemoteConfigService = new MockFetchRemoteConfigService(false, true); UpdateRemoteConfigCacheService = new UpdateRemoteConfigCacheService(TimeService, KeyValueStorage, mockFetchRemoteConfigService); UpdateRemoteConfigCacheService.FetchAndStoreRemoteConfigData(); KeyValueStorage.DidNotReceive().SetInt(RatingViewDelayParameter, Arg.Any <int>()); KeyValueStorage.DidNotReceive().SetString(RatingViewTriggerParameter, Arg.Any <string>()); KeyValueStorage.DidNotReceive().SetBool(RegisterPushNotificationsTokenWithServerParameter, Arg.Any <bool>()); KeyValueStorage.DidNotReceive().SetBool(HandlePushNotificationsParameter, Arg.Any <bool>()); }