Beispiel #1
0
 public readonly bool StartsWith(TopicId id)
 {
     return(Id.StartsWith(id, StringComparison.OrdinalIgnoreCase));
 }
Beispiel #2
0
 public void Should_not_be_valid_when_part_has_newline()
 {
     Assert.False(TopicId.IsValid("part\none/part-two"));
 }
Beispiel #3
0
 public void Should_not_be_valid_when_part_has_dollar()
 {
     Assert.False(TopicId.IsValid("part$/part-two"));
 }
Beispiel #4
0
 public void Should_not_be_valid_when_part_has_double_slash()
 {
     Assert.False(TopicId.IsValid("part-one//part-two"));
 }
Beispiel #5
0
 public void Should_be_valid_when_parts_have_special_characters()
 {
     Assert.True(TopicId.IsValid("part-one/part-two"));
 }
Beispiel #6
0
 public void Should_be_valid_when_parts_have_whitespaces()
 {
     Assert.True(TopicId.IsValid("part1 plus/part2"));
 }
Beispiel #7
0
 public void Should_be_valid_for_multi_part_topic()
 {
     Assert.True(TopicId.IsValid("part1/part2"));
 }
Beispiel #8
0
 public void Should_be_valid_for_single_part_topic()
 {
     Assert.True(TopicId.IsValid("topic"));
 }