public override SearchState Search(SearchState searchState, Rating actualRating) { var pos = PatternSearchHelper.GetPatternPosition(searchState.ActualEstimatedFigure); var digit = PatternSearchHelper.GetPatternDigit(searchState.ActualEstimatedFigure); decimal dec = searchState.ActualEstimatedFigure; //todo //change rest of the digits to this digit return(searchState); }
public void PatternSearchHelper_HasPattern3_Test() { decimal num = 144.4555666m; Assert.IsFalse(PatternSearchHelper.HasPattern(num)); }
public void PatternSearchHelper_HasPattern2_Test() { decimal num = 123.3335567m; Assert.IsTrue(PatternSearchHelper.HasPattern(num)); }