Example #1
0
            public void Namespace_cannot_be_expanded_for_relative_topic_name()
            {
                Action call = () => RecordedMessageNamespaceExtensions.ExpandNamespaces("RelativeNamespace/Topic");

                call.Should().Throw <ArgumentException>();
            }
Example #2
0
            public void Namespace_cannot_be_expanded_for_null_topic_name()
            {
                Action call = () => RecordedMessageNamespaceExtensions.ExpandNamespaces(null);

                call.Should().Throw <ArgumentNullException>();
            }
Example #3
0
            public void Namespace_cannot_be_expanded_for_empty_topic_name()
            {
                Action call = () => RecordedMessageNamespaceExtensions.ExpandNamespaces(string.Empty);

                call.Should().Throw <ArgumentException>();
            }
Example #4
0
            public void Namespaces_can_be_expanded(string topicName, IEnumerable <string> expectedNamespaces)
            {
                var actualNamespaces = RecordedMessageNamespaceExtensions.ExpandNamespaces(topicName);

                actualNamespaces.Should().BeEquivalentTo(expectedNamespaces);
            }