GrpcPreconditions.CheckArgument(channelCredentials.IsComposable,"Supplied channel credentials do not allow composition.");
if(!channelCredentials.IsComposable)
{
thrownewArgumentException(string.Format("CallCredentials can't be composed with {0}. CallCredentials must be used with secure channel credentials like SslCredentials.",channelCredentials.GetType().Name));
Assert.AreEqual("CallCredentials can't be composed with FakeChannelCredentials. CallCredentials must be used with secure channel credentials like SslCredentials.",ex.Message);