protected override void PrepareFrameworkAndRunTest(string testFile) { Trace.Assert(!String.IsNullOrWhiteSpace(testFile)); Trace.Assert(File.Exists(testFile)); js.LoadJSFile(jsUnitCoreFile, false); js.Run(GetTestingJSFromFile(testFile), new FileInfo(testFile).Name); // Load tests into memory string testManager = new EmbeddedResourcesUtils().ReadEmbeddedResourceTextContents("js.net.resources.jsunit.testmanager.js"); js.Run(testManager, "js.net.resources.jsunit.testmanager.js"); }
public JSGlobal(CWDFileLoader fileLoader, JSConsole console, EmbeddedResourcesUtils embeddedResourceLoader) { Trace.Assert(fileLoader != null); Trace.Assert(console != null); Trace.Assert(embeddedResourceLoader != null); this.embeddedResourceLoader = embeddedResourceLoader; this.console = console; this.fileLoader = fileLoader; }
public JSGlobal(CWDFileLoader fileLoader, JSConsole console, EmbeddedResourcesUtils embeddedResourceLoader) { Trace.Assert(fileLoader != null); Trace.Assert(console != null); Trace.Assert(embeddedResourceLoader != null); this.embeddedResourceLoader = embeddedResourceLoader; this.console = console; this.fileLoader = fileLoader; }
protected override void PrepareFrameworkAndRunTest(string testFile) { Trace.Assert(js != null); Trace.Assert(!String.IsNullOrWhiteSpace(testFile)); Trace.Assert(File.Exists(testFile)); js.LoadJSFile(jasminJsFile, false); js.Run(GetTestingJSFromFile(testFile) + "; null;", new FileInfo(testFile).Name); // Load tests into memory string jasmineReporter = new EmbeddedResourcesUtils().ReadEmbeddedResourceTextContents("js.net.resources.jasmine.reporter.js"); js.Run(jasmineReporter, "js.net.resources.jasmine.reporter.js"); }
public JishInterpreter(IEngine engine, JSConsole console, LoadedAssembliesBucket loadedAssemblies, EmbeddedResourcesUtils embeddedResourceLoader, AssemblyCommandLoader assemblyCommandsLoader, ICurrentContextAssemblies currentContextAssemblies) { Trace.Assert(engine != null); Trace.Assert(console != null); Trace.Assert(loadedAssemblies != null); Trace.Assert(embeddedResourceLoader != null); Trace.Assert(assemblyCommandsLoader != null); Trace.Assert(currentContextAssemblies != null); this.engine = engine; this.currentContextAssemblies = currentContextAssemblies; this.assemblyCommandsLoader = assemblyCommandsLoader; this.embeddedResourceLoader = embeddedResourceLoader; this.loadedAssemblies = loadedAssemblies; this.console = console; }
public CWDFileLoader(EmbeddedResourcesUtils embeddedResourceLoader) { Trace.Assert(embeddedResourceLoader != null); this.embeddedResourceLoader = embeddedResourceLoader; }