示例#1
0
        public void ValidPattern(string pattern, string[] paramNames, string pathTemplateString, string[] expandArgs, string expanded)
        {
            var pat = new ResourcePattern(pattern);

            Assert.Equal(paramNames, pat.ParameterNames);
            Assert.Equal(pathTemplateString, pat.PathTemplateString);
            Assert.Equal(expanded, pat.Expand(expandArgs));
        }
        public void ValidExpansion(string pattern, string[] expandArgs, string expanded)
        {
            var pat = new ResourcePattern(pattern);

            Assert.Equal(expanded, pat.Expand(expandArgs));
        }