public void Should_be_able_to_add_item()
        {
            _collection.Add("~/scripts/bar.js");

            Assert.NotEmpty(_collection);
        }
예제 #2
0
        /// <summary>
        /// Adds a new web asset
        /// </summary>
        /// <param name="source">The source.</param>
        /// <example>
        /// <code lang="CS">
        /// &lt;%= Html.Telerik().ScriptRegistrar()
        ///            .Scripts(scripts => scripts.Add("script1.js"))
        /// %&gt;
        /// </code>
        /// </example>
        public virtual WebAssetCollectionBuilder Add(string source)
        {
            assets.Add(source);

            return(this);
        }