Exemplo n.º 1
0
        public void TestIsPrimeWithNegativeValue()
        {
            PositiveAndNegativeCase positiveAndNegativeCase = new PositiveAndNegativeCase();
            bool expectedResult = false;

            //Act
            bool actualResult = positiveAndNegativeCase.IsPrime(-10);

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
Exemplo n.º 2
0
        public void TestIsPrimeWith0And1()
        {
            PositiveAndNegativeCase positiveAndNegativeCase = new PositiveAndNegativeCase();
            bool expectedResult = true;

            //Act
            bool actualResult = positiveAndNegativeCase.IsPrime(1);

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }