public void IsPrimeMap_whenCalled_ReturnIfItIsAPrime(int num, bool expectedResult) { var result = intExtension.IsPrimeMap(num); Assert.That(result, Is.EqualTo(expectedResult)); }
private static bool IsPrime(int userInput) { var solution = new IntExtension(); return(solution.IsPrimeMap(userInput)); }