Esempio n. 1
0
        public void Highlight_rectangles_are_positioned_correctly(string text, params int[] indices)
        {
            // When
            box.Text = text;

            //Then
            var highlightsList = Highlights.ToList();

            for (var i = 0; i < indices.Length; i++)
            {
                var positionRect = PositionRect(indices[i], 3);
                highlightsList[i].Should().BeAtPosition(positionRect);
            }
        }