Apache.NMS.ActiveMQ.Test.FifoMessageDispatchChannelTest.TestClose C# (CSharp) Метод

TestClose() приватный Метод

private TestClose ( ) : void
Результат void
        public void TestClose()
        {
            FifoMessageDispatchChannel channel = new FifoMessageDispatchChannel();
            channel.Start();
            Assert.IsTrue( channel.Running == true );
            Assert.IsTrue( channel.Closed == false );
            channel.Close();
            Assert.IsTrue( channel.Running == false );
            Assert.IsTrue( channel.Closed == true );
            channel.Start();
            Assert.IsTrue( channel.Running == false );
            Assert.IsTrue( channel.Closed == true );
        }