TEST_EQUAL(copy.getName(), e_ptr->getName()) END_SECTION START_SECTION((NeutralLossDiffFilter& operator = (const NeutralLossDiffFilter& source))) NeutralLossDiffFilter copy; copy = *e_ptr; TEST_EQUAL(copy.getParameters(), e_ptr->getParameters()) TEST_EQUAL(copy.getName(), e_ptr->getName()) END_SECTION START_SECTION((template<typename SpectrumType> double apply(SpectrumType& spectrum))) DTAFile dta_file; PeakSpectrum spec; dta_file.load(OPENMS_GET_TEST_DATA_PATH("Transformers_tests.dta"), spec); double filter = e_ptr->apply(spec); TEST_REAL_SIMILAR(filter, 429.0) Param p(e_ptr->getParameters()); p.setValue("tolerance", 10.0); e_ptr->setParameters(p); filter = e_ptr->apply(spec); TEST_REAL_SIMILAR(filter, 2482.5) END_SECTION START_SECTION((static FilterFunctor* create())) FilterFunctor* ff = NeutralLossDiffFilter::create(); NeutralLossDiffFilter filter; TEST_EQUAL(ff->getParameters(), filter.getParameters()) TEST_EQUAL(ff->getName(), filter.getName()) END_SECTION