Beispiel #1
0
        public void SplitQueuePath_IfPathIsEmpty_Throws()
        {
            string path = "";

            ExceptionAssert.ThrowsArgument(() => NamespaceManagerExtensions.SplitQueuePath(path),
                                           "path", "path cannot be null or empty");
        }
Beispiel #2
0
        public void SplitQueuePath_IfNonDLQPath_ReturnsOriginalPath()
        {
            string[] result = NamespaceManagerExtensions.SplitQueuePath(TestEntityPath);

            Assert.NotNull(result);
            Assert.Equal(1, result.Length);
            Assert.Equal(TestEntityPath, result[0]);
        }
Beispiel #3
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]);
        }