public void AddHelpParameter(IParameter parameter, DescriptorCriteria containerCriteria) { if (parameter == null) { throw new ArgumentException(Error.UndefinedHelpParameter(Name, Category)); } if (parameter.Formula == null) { throw new ArgumentException(Error.UndefinedFormulaInHelpParameter(parameter.Name, Name, Category)); } if (!FormulaCache.Contains(parameter.Formula)) { FormulaCache.Add(parameter.Formula); } _helpParameters.Add(parameter, containerCriteria); }
public void should_have_added_the_kinetic_in_the_formula_cache() { _formulaCache.Contains(_kinetic).ShouldBeTrue(); }