Example #1
0
        public void FixtureSetUp()
        {
            var setupCodePath =

                EvaluatorPool = new EvaluatorPool(
                    ComparisonTest.JSShellPath,
                    JSShellOptions,
                    (e) =>
            {
                var initCode =
                    ComparisonTest.EvaluatorSetupCode +
                    Environment.NewLine +
                    // When we'll find option to read environment variables in SpiderMonkey, delete this.
                    ComparisonTest.EvaluatorPrepareEnvironmentCode(SetupEvaluatorEnvironment()) +
                    Environment.NewLine +
                    ComparisonTest.EvaluatorRunCode;

                e.WriteInput(initCode);
            },
                    SetupEvaluatorEnvironment()
                    );
        }