Exemplo n.º 1
0
        public void IsPrimeMap_whenCalled_ReturnIfItIsAPrime(int num, bool expectedResult)
        {
            var result = intExtension.IsPrimeMap(num);

            Assert.That(result, Is.EqualTo(expectedResult));
        }
Exemplo n.º 2
0
        private static bool IsPrime(int userInput)
        {
            var solution = new IntExtension();

            return(solution.IsPrimeMap(userInput));
        }