public void CherryAndSevenOnTheSameLine_CherryAndSevenOnTheSameLine_ReturnTrue() { var aLine = GenerateALine(Symbol.Cherry, Symbol.Seven, Symbol.TripleBar); var result = SymbolHelpers.CherryAndSevenOnTheSameLine(aLine); Assert.That(result, Is.EqualTo(true)); }
public void CherryAndSevenOnTheSameLine_NoCherryAndSevenOnTheSameLine_ReturnFalse() { var aLine = GenerateALine(Symbol.TripleBar, Symbol.DoubleBar, Symbol.DoubleBar); var result = SymbolHelpers.CherryAndSevenOnTheSameLine(aLine); Assert.That(result, Is.EqualTo(false)); }
// Return 75 score when cherry and seven on the same line private void CherryAndSevenOnAnyLine() { _score += SymbolHelpers.CherryAndSevenOnTheSameLine(_winLines.TopLine) ? 75 : 0; _score += SymbolHelpers.CherryAndSevenOnTheSameLine(_winLines.CenterLine) ? 75 : 0; _score += SymbolHelpers.CherryAndSevenOnTheSameLine(_winLines.BottomLine) ? 75 : 0; }