public void UseTcpTunnel()
        {
            var f = new SimpleListenerFactory(null);

            Assert.False(f.UseTunnel, "Do not use tunnel.");
            f = new SimpleListenerFactory(Mock.Of <ITunnelBore>());
            Assert.True(f.UseTunnel, "Use tunnel.");
        }
 public void TearDown()
 {
     log     = null;
     factory = null;
 }
 public void SetUp()
 {
     log     = new Mock <ILog> ();
     factory = new SimpleListenerFactory();
 }
 public void ConstructorAllowsNullTunnelBore()
 {
     var f = new SimpleListenerFactory(null); // if it throws, test fails ;)
 }
 public SimpleListenerFactoryTest()
 {
     _log     = new Mock <ILog>();
     _factory = new SimpleListenerFactory();
 }