public void BuildChannelFactory_Throws() { HttpMessageEncodingBindingElement encoding = new HttpMessageEncodingBindingElement(); ExceptionAssert.Throws<NotSupportedException>( SR.ChannelFactoryNotSupportedByHttpMessageEncodingBindingElement(typeof(HttpMessageEncodingBindingElement).Name), () => { encoding.BuildChannelFactory<IReplyChannel>(MockBindingContext.Create()); }); }
public void BuildChannelFactory_Throws() { HttpMessageEncodingBindingElement encoding = new HttpMessageEncodingBindingElement(); ExceptionAssert.Throws( typeof(NotSupportedException), "HttpMessageEncodingBindingElement.BuildChannelFactory should have thrown.", () => { encoding.BuildChannelFactory<IReplyChannel>(MockBindingContext.Create()); }); }
public void BuildChannelFactory_Throws() { HttpMessageEncodingBindingElement encoding = new HttpMessageEncodingBindingElement(); ExceptionAssert.Throws( typeof(NotSupportedException), "HttpMessageEncodingBindingElement.BuildChannelFactory should have thrown.", () => { encoding.BuildChannelFactory <IReplyChannel>(MockBindingContext.Create()); }); }