thrownewArgumentException(string.Format("{0} can't be composed with supplied CallCredentials. Secure credentials like SslCredentials must be used.",channelCredentials.GetType().Name));
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("FakeChannelCredentials can't be composed with supplied CallCredentials. Secure credentials like SslCredentials must be used.",ex.Message);
Assert.AreEqual("CallCredentials can't be composed with FakeChannelCredentials. CallCredentials must be used with secure channel credentials like SslCredentials.",ex.Message);