public void SplitQueuePath_IfPathIsEmpty_Throws() { string path = ""; ExceptionAssert.ThrowsArgument(() => NamespaceManagerExtensions.SplitQueuePath(path), "path", "path cannot be null or empty"); }
public void SplitQueuePath_IfNonDLQPath_ReturnsOriginalPath() { string[] result = NamespaceManagerExtensions.SplitQueuePath(TestEntityPath); Assert.NotNull(result); Assert.Equal(1, result.Length); Assert.Equal(TestEntityPath, result[0]); }
public void SplitQueuePath_IfDLQPath_ReturnsPathToParentEntity() { string path = QueueClient.FormatDeadLetterPath(TestEntityPath); string[] result = NamespaceManagerExtensions.SplitQueuePath(path); Assert.NotNull(result); Assert.Equal(2, result.Length); Assert.Equal(TestEntityPath, result[0]); }