Пример #1
0
        public void IAmThisNumber_InvalidNoMatch_ReturnsFalse()
        {
            // arrange
            var none = new NoMatch();

            // act
            var answer = none.IAmThisNumber(12);

            // assert
            Assert.IsFalse(answer);
        }
Пример #2
0
        public void IAmThisNumber_ValidNoMatch_ReturnsTrue()
        {
            // arrange
            var none = new NoMatch();

            // act
            var answer = none.IAmThisNumber(0);

            // assert
            Assert.AreEqual(CriteriaType.None, none.CriteriaType);
            Assert.IsTrue(answer);
        }