Пример #1
0
        public void Return_prime_numbers_When_input_is_not_a_prime_number(int input, int[] expected)
        {
            var primeNumbers = PrimeFactorCalculator.Calculate(input);

            Check.That(primeNumbers).ContainsExactly(expected);
        }
Пример #2
0
        public void Return_prime_number_When_input_is_prime_number(int input)
        {
            var primeNumbers = PrimeFactorCalculator.Calculate(input);

            Check.That(primeNumbers).ContainsExactly(input);
        }