예제 #1
0
        public void IAmThisNumber_InvalidFizz_ReturnsFalse()
        {
            //arrange
            var fizz = new Fizz();

            // act
            var answer = fizz.IAmThisNumber(11);

            //assert
            Assert.IsFalse(answer);
        }
예제 #2
0
        public void IAmThisNumber_ValidFizz_ReturnsTrue()
        {
            // arrange
            var fizz = new Fizz();

            // act
            var answer = fizz.IAmThisNumber(3);

            // assert
            Assert.AreEqual(CriteriaType.Fizz, fizz.CriteriaType);
            Assert.IsTrue(answer);
        }