public void RenderOptions()
        {
            var renderer = new TestableBocAutoCompleteReferenceValueRenderer(
                _resourceUrlFactory,
                GlobalizationService,
                RenderingFeatures.Default,
                () => new StubTextBox());

            Html.Writer.AddAttribute(HtmlTextWriterAttribute.Class, "body");
            Html.Writer.RenderBeginTag(HtmlTextWriterTag.Span);
            renderer.RenderOptionsMenuTitle(CreateRenderingContext());
            Html.Writer.RenderEndTag();

            var document = Html.GetResultDocument();

            AssertControl(document, OptionMenuConfiguration.EmbeddedOptionsMenu, AutoPostBack.Disabled);
        }
        public void RenderOptionsReadOnly()
        {
            Control.Stub(stub => stub.IsIconEnabled()).Return(true);
            Control.Stub(stub => stub.IsReadOnly).Return(true);

            var renderer = new TestableBocAutoCompleteReferenceValueRenderer(
                _resourceUrlFactory,
                GlobalizationService,
                RenderingFeatures.Default,
                () => new StubTextBox());

            Html.Writer.AddAttribute(HtmlTextWriterAttribute.Class, "body");
            Html.Writer.RenderBeginTag(HtmlTextWriterTag.Span);
            renderer.RenderOptionsMenuTitle(CreateRenderingContext());
            Html.Writer.RenderEndTag();

            var document = Html.GetResultDocument();

            AssertReadOnlyContent(document);
        }