public void NoCredential() { var args = new FirebaseMessagingClient.Args() { ClientFactory = new HttpClientFactory(), Credential = null, ProjectId = "test-project", }; Assert.Throws <ArgumentNullException>(() => new FirebaseMessagingClient(args)); }
public void NoProjectId() { var args = new FirebaseMessagingClient.Args() { ClientFactory = new HttpClientFactory(), Credential = null, }; args.ProjectId = null; Assert.Throws <ArgumentException>(() => new FirebaseMessagingClient(args)); args.ProjectId = string.Empty; Assert.Throws <ArgumentException>(() => new FirebaseMessagingClient(args)); }