public void Content_Is_Created()
        {
            var target = new ScrollViewer
            {
                Template = new FuncControlTemplate<ScrollViewer>(CreateTemplate),
                Content = "Foo",
            };

            target.ApplyTemplate();

            Assert.IsType<TextBlock>(target.Presenter.Child);
        }
        public void Content_Is_Created()
        {
            var target = new ScrollViewer
            {
                Template = ControlTemplate.Create<ScrollViewer>(this.CreateTemplate),
                Content = "Foo",
            };

            target.ApplyTemplate();

            var presenter = target.GetTemplateChild<ScrollContentPresenter>("contentPresenter");

            Assert.IsType<TextBlock>(presenter.Child);
        }