/// <summary>
        /// Creates the clone instance.
        /// </summary>
        /// <returns>The cloned instance.</returns>
        public override OperandEvaluator Clone()
        {
            var instance = new StaticVariableEvaluator(builder);

            foreach (var key in evaluators.Keys)
            {
                instance.evaluators.Add(key, evaluators[key]);
            }
            return(instance);
        }
 internal ObjectCompilerSetting()
 {
     var builder = new OperandBuilder();
     DynamicVariableEvaluator = new DynamicVariableEvaluator(builder);
     StaticVariableEvaluator = new StaticVariableEvaluator(builder);
 }
 public void SetUp()
 {
     testee = new StaticVariableEvaluator(new OperandBuilderImpl());
     evaluators = testee.GetType().GetField("evaluators", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(testee) as Dictionary<string, Func<object>>;
 }
 /// <summary>
 /// Creates the clone instance.
 /// </summary>
 /// <returns>The cloned instance.</returns>
 public override OperandEvaluator Clone()
 {
     var instance = new StaticVariableEvaluator(builder);
     foreach (var key in evaluators.Keys)
     {
         instance.evaluators.Add(key, evaluators[key]);
     }
     return instance;
 }