public void select_html_files() { var spec = new Specification("somelib.spec.js"); var files = new System.Collections.Generic.List<AssetFile>(){ new AssetFile("not.fixture.html"), new AssetFile("somelib.css"), new AssetFile("somelib.fixture.html") }; spec.SelectHtmlFiles(files); spec.HtmlFiles.Select(x => x.Name) .ShouldHaveTheSameElementsAs("somelib.fixture.html"); }
private bool isDependency(string specName, string assetName) { var specification = new Specification(new AssetFile(specName)); return specification.DependsOn(new AssetFile(assetName)); }
public void Specification(Specification spec) { var tag = _builder.BuildLeafTag(spec); _parent.Append(tag); }