//Disabling warning 0169 because this code will be called at //runtime with glade. #pragma warning disable 0169 private void OnDialogResponse(object sender, ResponseArgs args) { if (args.ResponseId == ResponseType.Ok) { MeasureFinder measureFinder = new MeasureFinder(); int minimumValue = Int32.Parse(minimumValueEntry.Text); if (linesPerMethodRadioButton.Active) { results = measureFinder.FindByLinesPerMethod(measures, minimumValue); } else if (parametersPerMethodRadioButton.Active) { results = measureFinder.FindByParametersPerMethod(measures, minimumValue); } else if (numberOfLinesRadioButton.Active) { results = measureFinder.FindByNumberOfLines(measures, minimumValue); } else if (numberOfParametersRadioButton.Active) { results = measureFinder.FindByNumberOfParameters(measures, minimumValue); } else if (numberOfFieldsRadioButton.Active) { results = measureFinder.FindByNumberOfFields(measures, minimumValue); } } findDialog.Destroy(); }
//Disabling warning 0169 because this code will be called at //runtime with glade. #pragma warning disable 0169 private void OnDialogResponse (object sender, ResponseArgs args) { if (args.ResponseId == ResponseType.Ok) { MeasureFinder measureFinder = new MeasureFinder (); int minimumValue = Int32.Parse (minimumValueEntry.Text); if (linesPerMethodRadioButton.Active) { results = measureFinder.FindByLinesPerMethod (measures, minimumValue); } else if (parametersPerMethodRadioButton.Active) { results = measureFinder.FindByParametersPerMethod (measures, minimumValue); } else if (numberOfLinesRadioButton.Active) { results = measureFinder.FindByNumberOfLines (measures, minimumValue); } else if (numberOfParametersRadioButton.Active) { results = measureFinder.FindByNumberOfParameters (measures, minimumValue); } else if (numberOfFieldsRadioButton.Active) { results = measureFinder.FindByNumberOfFields (measures, minimumValue); } } findDialog.Destroy (); }
public void TestFixtureSetUp() { assembly = AssemblyFactory.GetAssembly("Test.Assembly.dll"); measureFinder = new MeasureFinder(); measures = new MeasureCalculator().ProcessMeasures(assembly); }
public void TestFixtureSetUp () { assembly = AssemblyFactory.GetAssembly ("Test.Assembly.dll"); measureFinder = new MeasureFinder (); measures = new MeasureCalculator ().ProcessMeasures (assembly); }