public void CleanupUnits(SuggestedUnitStructure aSuggestedStructure, IList<string> aIgnoredUnits) { DelphiUnitCleanerOperation vOperation = new DelphiUnitCleanerOperation(); FileAgent.Content = vOperation.Execute(FileAgent.Content, aSuggestedStructure, aIgnoredUnits); }
protected void TestExecute(string iUnitContent, SuggestedUnitStructure iSuggestedStructure, IList<string> iExpectedInterfaceUnits, IList<string> iExpectedImplementationUnits, IList<string> iIgnoredUnits, string iErrorMsg) { DelphiUnitCleanerOperation vOperation = new DelphiUnitCleanerOperation(); string vActual = vOperation.Execute(iUnitContent, iSuggestedStructure, iIgnoredUnits); CheckUses(vActual, iExpectedInterfaceUnits, iExpectedImplementationUnits, iErrorMsg); }