public void IsPrime_5_ExpectTrue() { // Arrange NumbersUtility numbersUtility = new NumbersUtility(); // Act var result = numbersUtility.IsPrime(5); // Assert Assert.IsTrue(result); }
public void IsPrime_NegativeNumber_False() { // Arrange NumbersUtility numbersUtility = new NumbersUtility(); // Act var result = numbersUtility.IsPrime(-1); // Assert Assert.IsFalse(result); }
public void IsPrime_4_ExpectFalse() { // Arrange NumbersUtility numbersUtility = new NumbersUtility(); // Act var result = numbersUtility.IsPrime(4); // Assert Assert.IsFalse(result); }