public void CanBuildChannelFactory ()
		{
			NamedPipeTransportBindingElement be =
				new NamedPipeTransportBindingElement ();
			BindingContext ctx = new BindingContext (
				new CustomBinding (), empty_params);
			Assert.IsFalse (be.CanBuildChannelFactory<IRequestChannel> (ctx), "#1");
			Assert.IsFalse (be.CanBuildChannelFactory<IInputChannel> (ctx), "#2");
			Assert.IsFalse (be.CanBuildChannelFactory<IReplyChannel> (ctx), "#3");
			Assert.IsFalse (be.CanBuildChannelFactory<IOutputChannel> (ctx), "#4");

			Assert.IsFalse (be.CanBuildChannelFactory<IRequestSessionChannel> (ctx), "#5");
			Assert.IsFalse (be.CanBuildChannelFactory<IInputSessionChannel> (ctx), "#6");
			Assert.IsFalse (be.CanBuildChannelFactory<IReplySessionChannel> (ctx), "#7");
			Assert.IsFalse (be.CanBuildChannelFactory<IOutputSessionChannel> (ctx), "#8");

			// IServiceChannel is not supported
			Assert.IsFalse (be.CanBuildChannelFactory<IServiceChannel> (ctx), "#9");
			Assert.IsFalse (be.CanBuildChannelFactory<IClientChannel> (ctx), "#10");

			Assert.IsTrue (be.CanBuildChannelFactory<IDuplexSessionChannel> (ctx), "#11");
			Assert.IsTrue (be.CanBuildChannelFactory<IDuplexSessionChannel> (ctx), "#12");
		}
        public void CanBuildChannelFactory()
        {
            NamedPipeTransportBindingElement be =
                new NamedPipeTransportBindingElement();
            BindingContext ctx = new BindingContext(
                new CustomBinding(), empty_params);

            Assert.IsFalse(be.CanBuildChannelFactory <IRequestChannel> (ctx), "#1");
            Assert.IsFalse(be.CanBuildChannelFactory <IInputChannel> (ctx), "#2");
            Assert.IsFalse(be.CanBuildChannelFactory <IReplyChannel> (ctx), "#3");
            Assert.IsFalse(be.CanBuildChannelFactory <IOutputChannel> (ctx), "#4");

            Assert.IsFalse(be.CanBuildChannelFactory <IRequestSessionChannel> (ctx), "#5");
            Assert.IsFalse(be.CanBuildChannelFactory <IInputSessionChannel> (ctx), "#6");
            Assert.IsFalse(be.CanBuildChannelFactory <IReplySessionChannel> (ctx), "#7");
            Assert.IsFalse(be.CanBuildChannelFactory <IOutputSessionChannel> (ctx), "#8");

            // IServiceChannel is not supported
            Assert.IsFalse(be.CanBuildChannelFactory <IServiceChannel> (ctx), "#9");
            Assert.IsFalse(be.CanBuildChannelFactory <IClientChannel> (ctx), "#10");

            Assert.IsTrue(be.CanBuildChannelFactory <IDuplexSessionChannel> (ctx), "#11");
            Assert.IsTrue(be.CanBuildChannelFactory <IDuplexSessionChannel> (ctx), "#12");
        }