public void Setup()
        {
            _control = new EditableTextBlock
            {
                Style = StyleHelper.Load <EditableTextBlock>()
            };
            _control.ApplyTemplate();

            var type = typeof(EditableTextBlock);

            _textBox   = (EditorTextBox)type.GetField("_textBox", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(_control);
            _presenter = (MarkdownPresenter)type.GetField("_presenter", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(_control);
        }
        public void TestApplyTemplate()
        {
            var control = new EditableTextBlock
            {
                Style = StyleHelper.Load <EditableTextBlock>(),
                Text  = "Foobar"
            };

            control.ApplyTemplate();
            var type      = typeof(EditableTextBlock);
            var presenter = (MarkdownPresenter)type.GetField("_presenter", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(control);

            presenter.Markdown.Should().Be("Foobar");
        }