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); }
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); }
/// <summary> /// /// </summary> /// <param name="project"></param> public BSharpXmlResolver(IBSharpProject project) { this._project = project; this._projectresolver = new ProjectUriResolver(_project); this._nativeresolver = new XmlUrlResolver(); }
public void ResolvesFilePath(string url, string path) { var resolver = new ProjectUriResolver(_project); Assert.AreEqual(path, resolver.GetPath(new Uri(url)).Replace("c:", "")); }