Esempio n. 1
0
        public void PathBasedUrlFormat_Create_Exceeding_Max_Path()
        {
            var output = PathBasedUrlFormatter.CreatePath("{dependencyId}.{version}.{type}", "123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100asdfghjklqwertyuiopqwertyuiopzxcvbnmasdfghjklqwertyuiopasdfghjklpoiuytrew", ClientDependencyType.Javascript, 10);

            Assert.AreEqual("123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100asdfghjklqwertyuiopqwertyuiopzxcvbnmasdfghjklqwe/rtyuiopasdfghjklpoiuytrew.10.js", output);
        }
Esempio n. 2
0
        public void PathBasedUrlFormat_Create()
        {
            var output = PathBasedUrlFormatter.CreatePath("{dependencyId}.{version}.{type}", "123456789", ClientDependencyType.Javascript, 10);

            Assert.AreEqual("123456789.10.js", output);
        }