public void Should_be_able_to_add_item() { _collection.Add("~/scripts/bar.js"); Assert.NotEmpty(_collection); }
/// <summary> /// Adds a new web asset /// </summary> /// <param name="source">The source.</param> /// <example> /// <code lang="CS"> /// <%= Html.Telerik().ScriptRegistrar() /// .Scripts(scripts => scripts.Add("script1.js")) /// %> /// </code> /// </example> public virtual WebAssetCollectionBuilder Add(string source) { assets.Add(source); return(this); }