public void PutConfig_ThrowsArgumentExceptionOnBadArgs() { try { RemoteConfigWebApiClient.PutConfig(null, null, null, null); } catch (ArgumentException ex) { Assert.That(ex.GetType() == typeof(ArgumentException)); } }
void PushSettings(JArray settingsArr) { isMakingHttpCall = true; var newSettings = new JArray(); foreach (var t in settingsArr) { newSettings.Add(t["rs"].DeepClone()); } RemoteConfigWebApiClient.settingsRequestFinished += RemoteConfigWebApiClient_settingsRequestFinished; RemoteConfigWebApiClient.PutConfig(Application.cloudProjectId, environmentId, configId, newSettings); }