예제 #1
0
        public void TagsRectangleData_ShouldNotBeEpmty()
        {
            var strings = new string[] { "1" };

            tagsData.GetData().Returns(strings);

            tagsCloudConteiner.GetTagsRectangleData().Should().NotBeEmpty();
        }
예제 #2
0
        public Dictionary <string, Rectangle> GetTagsRectangleData()
        {
            foreach (var word in tagsData.GetData())
            {
                var size      = tagSizeNormalizer.GetTagSize(word);
                var rectangle = circularCloudLayouter.PutNextRectangle(size);

                tagRectanglesData.Add(word, rectangle);
            }

            return(tagRectanglesData);
        }