Ejemplo n.º 1
0
        public async Task TestConnectionDropped()
        {
            await relay0.ConnectToNodeAsync(1);

            await relay0.ConnectToNodeAsync(2);

            await Task.Delay(100);

            factory1.Dispose();

            await Task.Delay(100);

            Assert.AreEqual(1, relay0.GetConnectedClientsCount());
            Assert.AreEqual(1, relay2.GetConnectedClientsCount());
        }
Ejemplo n.º 2
0
 public void Cleanup()
 {
     factoryA?.Dispose();
     factoryB?.Dispose();
 }