public void IsPrime_ValuesLessThan2_ReturnFalse(int value) { using (PrimeServiceController primeService = CreatePrimeService()) { var result = primeService.IsPrime(value); Assert.IsFalse(result, $"{value} should not be prime"); } }
public void IsPrime_InputIs1_ReturnFalse() { using (PrimeServiceController primeService = CreatePrimeService()) { var result = primeService.IsPrime(1); Assert.IsFalse(result, "1 should not be prime"); } }