public void IsSatisfied_Returns_True_For_Next_Card_Is_Correct()
        {
            // Arrange
            m_Finder.NextCardValue(Arg.Any <char>()).Returns('3');

            m_Sut.CardOne = m_CardOne;
            m_Sut.CardTwo = m_CardTwo;

            // Act
            // Assert
            Assert.True(m_Sut.IsSatisfied());
        }
Пример #2
0
        public void NextCardValue_Calls_NextCardValue()
        {
            // Arrange
            m_Next.NextCardValue(Arg.Any <char>()).Returns('?');

            // Act
            char actual = m_Sut.NextCardValue('2');

            // Assert
            Assert.AreEqual('?',
                            actual);
        }
Пример #3
0
        public override bool IsSatisfied()
        {
            char nextCardValue = m_Finder.NextCardValue(CardOne.Value);

            return(nextCardValue == CardTwo.Value);
        }
Пример #4
0
 public virtual char NextCardValue(char value)
 {
     return(m_Next.NextCardValue(value));
 }