public void smoke_test_javascript_file() { var file = Embeds.GetFiles().First(x => x.FileName == "testEditor.js"); file.Contents().ShouldNotBeEmpty(); file.Folder.ShouldEqual("Controls"); }
private void addJavascriptFiles(HtmlDocument document) { var scripts = new string[] { JQUERY, STORYTELLER }; Embeds.WriteFiles(); var files = Embeds.GetFiles(); scripts.Each(s => { var file = files.First(x => x.FileName == s); document.AddJavaScript(file.Contents()); //document.ReferenceJavaScriptFile(file.FullPath); }); files.Where(x => !scripts.Contains(x.FileName)).Each(file => { document.AddJavaScript(file.Contents()); //document.ReferenceJavaScriptFile(file.FullPath); }); }
public void get_javascript_files() { Embeds.GetFiles().Any().ShouldBeTrue(); }