Пример #1
0
        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));
        }
Пример #2
0
        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));
        }
Пример #3
0
 // 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;
 }