public readonly bool StartsWith(TopicId id) { return(Id.StartsWith(id, StringComparison.OrdinalIgnoreCase)); }
public void Should_not_be_valid_when_part_has_newline() { Assert.False(TopicId.IsValid("part\none/part-two")); }
public void Should_not_be_valid_when_part_has_dollar() { Assert.False(TopicId.IsValid("part$/part-two")); }
public void Should_not_be_valid_when_part_has_double_slash() { Assert.False(TopicId.IsValid("part-one//part-two")); }
public void Should_be_valid_when_parts_have_special_characters() { Assert.True(TopicId.IsValid("part-one/part-two")); }
public void Should_be_valid_when_parts_have_whitespaces() { Assert.True(TopicId.IsValid("part1 plus/part2")); }
public void Should_be_valid_for_multi_part_topic() { Assert.True(TopicId.IsValid("part1/part2")); }
public void Should_be_valid_for_single_part_topic() { Assert.True(TopicId.IsValid("topic")); }