示例#1
0
        public string Run(int range)
        {
            if (range <= 1)
            {
                throw new ArgumentException("Range should be greater than 1");
            }

            var output = new List <string>();

            for (int i = 1; i <= range; i++)
            {
                output.Add(_numberEvaluator.Resolve(i));
            }
            var results = string.Join(" ", output);

            return($"{results} {_summary.GetResults(output)}");
        }