コード例 #1
0
        public void With_two_tags_returns_two_elements()
        {
            var result = new DreamTagStringExtractor("Friends, Beach").Tags;

            result.Should().HaveCount(2).And.Contain("Friends").And.Contain("Beach");
        }
コード例 #2
0
        public void With_two_tags_and_child_tags_two_elements_returned()
        {
            var result = new DreamTagStringExtractor("Friends  (Pepe, John), Beach (Gandia)").Tags;

            result.Should().HaveCount(2).And.Contain("Friends  (Pepe, John)").And.Contain("Beach (Gandia)");
        }
コード例 #3
0
        public void With_one_tag_and_children_with_unclosed_child_tags_returns_one_tag_exactly()
        {
            var result = new DreamTagStringExtractor("Friends (Pepe, John").Tags;

            result.Single().Should().Be("Friends (Pepe, John)");
        }
コード例 #4
0
        public void With_one_tag_returns_one_tag_exactly()
        {
            var result = new DreamTagStringExtractor("Friends ").Tags;

            result.Single().Should().Be("Friends");
        }
コード例 #5
0
        public void Constructor_empty_string_returns_empty_list()
        {
            var result = new DreamTagStringExtractor("").Tags;

            result.Should().BeEmpty();
        }