예제 #1
0
        public void IsPrimeMap_whenCalled_ReturnIfItIsAPrime(int num, bool expectedResult)
        {
            var result = intExtension.IsPrimeMap(num);

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

            return(solution.IsPrimeMap(userInput));
        }