public void TestClientConnected(bool connected) { inner.ClientConnected().Returns(connected); Assert.That(middleware.ClientConnected(), Is.EqualTo(connected)); inner.Received(1).ClientConnected(); }
public void TestConnected() { transport1.Available().Returns(true); transport.ClientConnect("some.server.com"); transport1.ClientConnected().Returns(true); Assert.That(transport.ClientConnected()); }
protected override void Start() { base.Start(); target.Data = transport.ClientConnected(); }
public override bool ClientConnected() => CommunicationTransport.ClientConnected();
public override bool ClientConnected() { return((object)available != null && available.ClientConnected()); }