/// <summary>
        /// Defines the panes in the splitter.
        /// </summary>
        /// <param name="configurePanes">The action that configures the panes.</param>
        /// <example>
        /// <code lang="CS">
        ///  &lt;%= Html.Telerik().Splitter()
        ///             .Name("Splitter")
        ///             .Panes(panes => {
        ///                 panes.Add().LoadContentFrom("Navigation", "Shared");
        ///                 panes.Add().LoadContentFrom("Index", "Home");
        ///             })
        /// %&gt;
        /// </code>
        /// </example>
        public SplitterBuilder Panes(Action <SplitterPaneFactory> configurePanes)
        {
            Guard.IsNotNull(configurePanes, "configurePanes");

            var paneFactory = new SplitterPaneFactory(Component, Component.ViewContext);

            configurePanes(paneFactory);

            return(this);
        }
        [Fact]
        public void Add_adds_pane_to_splitter()
        {
            factory.Add();