public TestGenerationWindow(FaultModel faultModel, IList<TestCase.FaultModelTesterTestCase> testCases, Action<string> logFunction) { InitializeComponent(); this.log = logFunction; this.testCases = testCases; this.faultModel = faultModel as ControllerComparisonFaultModel; this.EnableDWMDropShadow = true; this.Title = "Test Case Generation - Controller Comparison Fault Model"; requirements = (IList<string>)faultModel.FaultModelConfiguration.GetValue("Requirements", "complex"); int i = 0; foreach (string requirement in requirements) { if (i == 0) { this.RequirementComboBox.Items.Add("Max deviation"); } else if (i == 1) { this.RequirementComboBox.Items.Add("Mean deviation"); } else { this.RequirementComboBox.Items.Add(requirement + " difference"); } i++; } InvestigateWorstCaseRadioButton.IsChecked = true; }
public RunWindow(ControllerComparisonFaultModel faultModel, Action<string> logFunction) { InitializeComponent(); this.log = logFunction; this.faultModel = faultModel; this.EnableDWMDropShadow = true; this.testModel = TestRunWorker.TestModel.Both; }