public void IsOdd_ShouldReturnFalse_WhenNumberIsNotDivisibleByTwo() { bool isOdd = ParityService.IsOdd(1); Assert.That(isOdd, Is.False); }
public void IsOdd_ShouldReturnTrue_WhenNumberIsDivisibleByTwo() { bool isOdd = ParityService.IsOdd(2); Assert.That(isOdd, Is.True); }
public void IsEven_ShouldReturnFalse_WhenNumberIsEven(int number) { bool isEven = ParityService.IsOdd(number); Assert.That(isEven, Is.False); }