Exemplo n.º 1
0
        public void RemoveNotAddedConnectionProvider()
        {
            var p = new MockConnectionProvider (protocol);
            p.Start (MessageTypes.Reliable);
            Assert.IsTrue (p.IsRunning);

            var server = new MockServer (provider, MessageTypes.Reliable);
            server.RemoveConnectionProvider (p);
            Assert.IsTrue (p.IsRunning);
        }
Exemplo n.º 2
0
        public void RemoveConnectionProviderGlobalOrder()
        {
            var server = new MockServer (MessageTypes.Reliable);
            server.AddConnectionProvider (provider, ExecutionMode.GlobalOrder);
            Assert.IsFalse (provider.IsRunning);

            server.RemoveConnectionProvider (provider);
            Assert.IsFalse (provider.IsRunning);
        }
Exemplo n.º 3
0
 public void RemoveConnectionProviderNull()
 {
     var server = new MockServer (provider, MessageTypes.Reliable);
     Assert.Throws<ArgumentNullException> (() => server.RemoveConnectionProvider (null));
 }
Exemplo n.º 4
0
        public void RemoveConnectionProvider()
        {
            var server = new MockServer (provider, MessageTypes.Reliable);
            Assert.IsFalse (provider.IsRunning);

            server.RemoveConnectionProvider (provider);
            Assert.IsFalse (provider.IsRunning);
        }