コード例 #1
0
        public void DeleteQueueWithError()
        {
            var rsmq = new Rsmq();

            Assert.Throws <InvalidFormatException>(() => rsmq.DeleteQueue(new DeleteQueueOptions {
                QueueName = Global.WrongQueueNameFormat
            }));
        }
コード例 #2
0
        public void DeleteQueue()
        {
            var rsmq = new Rsmq();

            rsmq.CreateQueue(new CreateQueueOptions {
                QueueName = Global.QueueName
            });
            Assert.AreEqual(1, rsmq.ListQueues().Count());
            rsmq.DeleteQueue(new DeleteQueueOptions {
                QueueName = Global.QueueName
            });
            Assert.Zero(rsmq.ListQueues().Count());
        }