public void CreateQueueTest() { //_queueConnectionProperties.QueueName = _createQueueName; var result = QueueTasks.CreateQueueAsync(_queueConnectionProperties, _options, new CancellationToken()); Assert.IsTrue(result.Result.Success); Assert.IsTrue(QueueTestHelpers.QueueExists(_testClient, _createQueueName)); }
public void CreateQueue_ReturnsFalseIfQueueExists() { var resultSuccess = QueueTasks.CreateQueueAsync(_queueConnectionProperties, _options, new CancellationToken()); var resultFails = QueueTasks.CreateQueueAsync(_queueConnectionProperties, _options, new CancellationToken()); Assert.IsTrue(resultSuccess.Result.Success); Assert.IsFalse(resultFails.Result.Success); Assert.IsTrue(QueueTestHelpers.QueueExists(_testClient, _createQueueName)); }