Apache.NMS.ActiveMQ.Test.SimplePriorityMessageDispatchChannelTest.TestClose C# (CSharp) Method

TestClose() private method

private TestClose ( ) : void
return void
        public void TestClose()
        {
            SimplePriorityMessageDispatchChannel channel = new SimplePriorityMessageDispatchChannel();
            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 );
        }