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()); }
public void NextCardValue_Calls_NextCardValue() { // Arrange m_Next.NextCardValue(Arg.Any <char>()).Returns('?'); // Act char actual = m_Sut.NextCardValue('2'); // Assert Assert.AreEqual('?', actual); }
public override bool IsSatisfied() { char nextCardValue = m_Finder.NextCardValue(CardOne.Value); return(nextCardValue == CardTwo.Value); }
public virtual char NextCardValue(char value) { return(m_Next.NextCardValue(value)); }