Пример #1
0
        static void Main(string[] args)
        {
            var input = new int[] { 1, 9, 3, 4, 5, 6, 2, 9 };

            var dividersCalculator = new DividersCalculator();


            Console.WriteLine("Fase 1:");
            WriteOutputs(dividersCalculator.Calculate(input));
            Console.WriteLine("");
            Console.WriteLine("Fase 2:");
            WriteOutputs(dividersCalculator.Calculate(input, false));
            Console.ReadLine();
        }
Пример #2
0
        public void SutCalculatorReturnValidDistinctNumbers(params int[] input)
        {
            var dividersCalculator = new DividersCalculator();
            var output             = dividersCalculator.Calculate(input);

            var expectation = new (int a, int b)[]