public void TagsRectangleData_ShouldNotBeEpmty() { var strings = new string[] { "1" }; tagsData.GetData().Returns(strings); tagsCloudConteiner.GetTagsRectangleData().Should().NotBeEmpty(); }
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); }