/// <summary> /// Sets up the runner before performing a test case /// </summary> public void Setup() { try { Generated.ControllersManager.NamableController.DesactivateNotification(); // Setup the execution environment Setuper setuper = new Setuper(EFSSystem); foreach (DataDictionary.Dictionary dictionary in EFSSystem.Dictionaries) { setuper.visit(dictionary); } // Clears all caches Utils.FinderRepository.INSTANCE.ClearCache(); // Builds the list of functions that will require a cache for their graph FunctionCacheCleaner = new FunctionGraphCache(EFSSystem); // Setup the step Expression expression = EFSSystem.Parser.Expression(SubSequence.Frame, SubSequence.Frame.getCycleDuration()); Values.IValue value = expression.GetValue(new InterpretationContext(SubSequence.Frame)); Step = Functions.Function.getDoubleValue(value); } finally { Generated.ControllersManager.NamableController.ActivateNotification(); } }
/// <summary> /// Sets up the runner before performing a test case /// </summary> public void Setup() { Util.DontNotify(() => { // Clears all caches FinderRepository.INSTANCE.ClearCache(); EfsSystem.Instance.ClearFunctionCache(); // Setup the execution environment Setuper setuper = new Setuper(); ExecutionTimeInitializer executionTimeInitializer = new ExecutionTimeInitializer(); foreach (Dictionary dictionary in EfsSystem.Instance.Dictionaries) { setuper.visit(dictionary); executionTimeInitializer.visit(dictionary); } // Setup the step if (SubSequence != null) { Expression expression = SubSequence.Frame.CycleDuration; // ReSharper disable once UnusedVariable IValue value = expression.GetExpressionValue(new InterpretationContext(SubSequence.Frame), null); } PleaseWait = false; }); }