public void DeleteQueueWithError() { var rsmq = new Rsmq(); Assert.Throws <InvalidFormatException>(() => rsmq.DeleteQueue(new DeleteQueueOptions { QueueName = Global.WrongQueueNameFormat })); }
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()); }