Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
        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");
        }
Ejemplo n.º 5
0
        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;
        }
Ejemplo n.º 6
0
        public CWDFileLoader(EmbeddedResourcesUtils embeddedResourceLoader)
        {
            Trace.Assert(embeddedResourceLoader != null);

              this.embeddedResourceLoader = embeddedResourceLoader;
        }