public void Namespace_cannot_be_expanded_for_relative_topic_name() { Action call = () => RecordedMessageNamespaceExtensions.ExpandNamespaces("RelativeNamespace/Topic"); call.Should().Throw <ArgumentException>(); }
public void Namespace_cannot_be_expanded_for_null_topic_name() { Action call = () => RecordedMessageNamespaceExtensions.ExpandNamespaces(null); call.Should().Throw <ArgumentNullException>(); }
public void Namespace_cannot_be_expanded_for_empty_topic_name() { Action call = () => RecordedMessageNamespaceExtensions.ExpandNamespaces(string.Empty); call.Should().Throw <ArgumentException>(); }
public void Namespaces_can_be_expanded(string topicName, IEnumerable <string> expectedNamespaces) { var actualNamespaces = RecordedMessageNamespaceExtensions.ExpandNamespaces(topicName); actualNamespaces.Should().BeEquivalentTo(expectedNamespaces); }