Пример #1
0
        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);

        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);

        }