コード例 #1
0
        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);
        }
コード例 #2
0
        public void PatternSearchHelper_HasPattern3_Test()
        {
            decimal num = 144.4555666m;

            Assert.IsFalse(PatternSearchHelper.HasPattern(num));
        }
コード例 #3
0
        public void PatternSearchHelper_HasPattern2_Test()
        {
            decimal num = 123.3335567m;

            Assert.IsTrue(PatternSearchHelper.HasPattern(num));
        }