예제 #1
0
        public void IsPrime_5_ExpectTrue()
        {
            // Arrange
            NumbersUtility numbersUtility = new NumbersUtility();

            // Act
            var result = numbersUtility.IsPrime(5);

            // Assert
            Assert.IsTrue(result);
        }
예제 #2
0
        public void IsPrime_NegativeNumber_False()
        {
            // Arrange
            NumbersUtility numbersUtility = new NumbersUtility();

            // Act
            var result = numbersUtility.IsPrime(-1);

            // Assert
            Assert.IsFalse(result);
        }
예제 #3
0
        public void IsPrime_4_ExpectFalse()
        {
            // Arrange
            NumbersUtility numbersUtility = new NumbersUtility();

            // Act
            var result = numbersUtility.IsPrime(4);

            // Assert
            Assert.IsFalse(result);
        }