public void CreateNotWatchListener() { var(transport, listener, listenerTmpFile) = factory.Create(RunMode.iOS, log.Object, log.Object, true, true, true); Assert.AreEqual(ListenerTransport.Tcp, transport, "transport"); Assert.IsInstanceOf(typeof(SimpleTcpListener), listener, "listener"); Assert.IsNull(listenerTmpFile, "tmp file"); }
public void CreateNotWatchListener() { var(transport, listener, listenerTmpFile) = _factory.Create(RunMode.iOS, _log.Object, _log.Object, true, true, true); Assert.Equal(ListenerTransport.Tcp, transport); Assert.IsType <SimpleTcpListener>(listener); Assert.Null(listenerTmpFile); }
public void CreateNotWatchListener() { var transport = factory.Create("ios", log.Object, true, out var listener, out var listenerFileTemp); Assert.AreEqual(ListenerTransport.Tcp, transport, "transport"); Assert.IsInstanceOf(typeof(SimpleTcpListener), listener, "listener"); Assert.IsNull(listenerFileTemp, "tmp file"); }