public void DeleteQueue_ReturnsFalseIfQueueDoesNotExist() { _queueConnectionProperties.QueueName = "foobar"; var result = QueueTasks.DeleteQueueAsync(_queueConnectionProperties, _options, new CancellationToken()); Assert.IsFalse(result.Result.Success); }
public void DeleteQueue() { // create queue and check that it exists before delete test QueueTestHelpers.CreateQueue(_testClient, _createQueueName); Assert.IsTrue(QueueTestHelpers.QueueExists(_testClient, _createQueueName)); var result = QueueTasks.DeleteQueueAsync(_queueConnectionProperties, _options, new CancellationToken()); Assert.IsTrue(result.Result.Success); Assert.IsFalse(QueueTestHelpers.QueueExists(_testClient, _createQueueName)); }