Пример #1
0
        public void P03_OptimusPrime_NextPrime(int prime, int expected)
        {
            var result = P03_OptimusPrime.NextPrime(prime);

            result.Should().Be(expected);
        }
Пример #2
0
        public void P03_OptimusPrime_GetPrime(int number, int expected)
        {
            var result = P03_OptimusPrime.GetPrime(number);

            result.Should().Be(expected);
        }
Пример #3
0
        public void P03_OptimusPrime_IsPrime(int num, bool expected)
        {
            var result = P03_OptimusPrime.IsPrime(num);

            result.Should().Be(expected);
        }