public void Run() { switch (options.Mode) { case OperationMode.Record: LoadNotifySystem(options); Console.Write("."); RunAnalysis(options); break; case OperationMode.Optimize: var recorder = new RecordingNotifySystem(NotifySystem.DefaultSystem); NotifySystem.DefaultSystem = recorder; Console.WriteLine("Recording variation points..."); RunAnalysis(options); Console.WriteLine("Found {0} variation points. ", recorder.Configuration.MethodConfigurations.Select(c => c.AllowedStrategies.Count).Aggregate(1, (a, b) => a * b)); OptimizeAnalysis(recorder.Configuration); break; default: Console.WriteLine("Operation mode {0} is unknown.", options.Mode); Environment.Exit(1); break; } }
public void LoadInnerTests() { recorder = new RecordingNotifySystem(InstructionLevelNotifySystem.Instance); inner = new InnerTests(recorder); inner.LoadRailwayModel(); }
public InnerTests(RecordingNotifySystem system) { notifySystem = system; }
public InnerTests(RecordingNotifySystem system) { notifySystem = system; }
public void LoadInnerTests() { recorder = new RecordingNotifySystem(InstructionLevelNotifySystem.Instance); inner = new InnerTests(recorder); inner.LoadRailwayModel(); }