Example #1
0
        public void ResolveClasses(string url, string names)
        {
            var resolver  = new ProjectUriResolver(_project);
            var classlist = string.Join(",", resolver.GetClasses(new Uri(url)).Select(_ => _.Name).OrderBy(_ => _));

            Assert.AreEqual(names, classlist);
        }
Example #2
0
 public XsltTask(IBSharpProject project, XElement definition)
 {
     this.Project = project;
     this.TemplateUri = new Uri(definition.Attr("template"));
     this.ClassSelector = new Uri(definition.Attr("selector"));
     this.Batch = definition.Attr("batch").ToBool();
     this.OutputPath = new Uri(definition.Attr("output"));
     this.NoXml = definition.Attr("noxml").ToBool();
     this._resolver = new ProjectUriResolver(project);
 }
Example #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="project"></param>
 public BSharpXmlResolver(IBSharpProject project)
 {
     this._project = project;
     this._projectresolver = new ProjectUriResolver(_project);
     this._nativeresolver = new XmlUrlResolver();
 }
Example #4
0
        public void ResolvesFilePath(string url, string path)
        {
            var resolver = new ProjectUriResolver(_project);

            Assert.AreEqual(path, resolver.GetPath(new Uri(url)).Replace("c:", ""));
        }