public void Span_is_only_created_once_on_calls_to_measure()
        {
            var view = new TestableContentView <int>(42);

            view.Measure(_renderer, new Size(0, 0));
            TextSpan firstSpan = view.GetSpan();

            view.Measure(_renderer, new Size(0, 0));

            ReferenceEquals(view.GetSpan(), firstSpan).Should().BeTrue();
        }
        public void Span_is_only_created_once_on_calls_to_render()
        {
            var view = new TestableContentView <int>(42);

            view.Render(_renderer, new Region(0, 0, 0, 0));
            Span firstSpan = view.GetSpan();

            view.Render(_renderer, new Region(0, 0, 0, 0));

            ReferenceEquals(view.GetSpan(), firstSpan).Should().BeTrue();
        }