public void SetAsync_IncorrectParams() { string s = null; var dbRef = new FirebaseAdminRef(_httpClient, "Base"); Assert.Throws(typeof(AggregateException), () => dbRef.SetAsync(s).Result); }
public void UpdateAsync_IncorrectParams() { string s = null; var dbRef = new FirebaseAdminRef(_httpClient, "Base"); Assert.Throws(typeof(AggregateException), () => dbRef.UpdateAsync(new Dictionary <string, object>()).Result); Assert.Throws(typeof(AggregateException), () => dbRef.UpdateAsync(null).Result); }
public void OrderBy_InvalidArguments(string arg) { var dbRef = new FirebaseAdminRef(_httpClient, "Base"); Assert.Throws(typeof(ArgumentNullException), () => dbRef.OrderBy(arg)); }