public void OptionParsing() { PathList list = new PathList(); list.Add("~/libs"); list.Add("~/libs2"); var coll = new ScriptCollection(list, TestUtil.MapPath); coll.AddPath("~/scripts/test-script-3.js"); Assert.AreEqual(coll.Count, 1); }
public void OptionParsing() { PathList list = new PathList(); list.Add("~/scripts/libs"); list.Add("~/scripts/libs2"); var coll = new ScriptCollection(new ScriptEnvironment { RelativePathRoot = "/", LibraryPath = list, MapPath = TestUtil.MapPath }); coll.AddPath("~/scripts/test-script-3.js"); Assert.AreEqual(coll.Count, 1); }
public void OptionParsing() { PathList list = new PathList(); list.Add("~/scripts/libs"); list.Add("~/scripts/libs2"); var coll = new ScriptCollection(new ScriptEnvironment { RelativePathRoot= "/", LibraryPath= list, MapPath = TestUtil.MapPath }); coll.AddPath("~/scripts/test-script-3.js"); Assert.AreEqual(coll.Count, 1); }