示例#1
0
        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");
        }
示例#2
0
        private bool isDependency(string specName, string assetName)
        {
            var specification = new Specification(new AssetFile(specName));

            return specification.DependsOn(new AssetFile(assetName));
        }
示例#3
0
 public void Specification(Specification spec)
 {
     var tag = _builder.BuildLeafTag(spec);
     _parent.Append(tag);
 }