Exemple #1
0
        public void TestClientConnected(bool connected)
        {
            inner.ClientConnected().Returns(connected);

            Assert.That(middleware.ClientConnected(), Is.EqualTo(connected));

            inner.Received(1).ClientConnected();
        }
Exemple #2
0
        public void TestConnected()
        {
            transport1.Available().Returns(true);
            transport.ClientConnect("some.server.com");

            transport1.ClientConnected().Returns(true);

            Assert.That(transport.ClientConnected());
        }
Exemple #3
0
 protected override void Start()
 {
     base.Start();
     target.Data = transport.ClientConnected();
 }
Exemple #4
0
 public override bool ClientConnected() => CommunicationTransport.ClientConnected();
Exemple #5
0
 public override bool ClientConnected()
 {
     return((object)available != null && available.ClientConnected());
 }