public void ABarOnTheLine_ABarOnTheLine_ReturnTrue() { var aLine = GenerateALine(Symbol.Bar, Symbol.DoubleBar, Symbol.TripleBar); var result = SymbolHelpers.ABarOnTheLine(aLine); Assert.That(result, Is.EqualTo(true)); }
public void ABarOnTheLine_NoBarOnTheLine_ReturnFalse() { var aLine = GenerateALine(Symbol.DoubleBar, Symbol.TripleBar, Symbol.Seven); var result = SymbolHelpers.ABarOnTheLine(aLine); Assert.That(result, Is.EqualTo(false)); }
// Return 5 score when one or two bars on any line private void OneOrTwoBarsOnAnyLine() { _score += SymbolHelpers.ABarOnTheLine(_winLines.TopLine) ? 5 : 0; _score += SymbolHelpers.ABarOnTheLine(_winLines.CenterLine) ? 5 : 0; _score += SymbolHelpers.ABarOnTheLine(_winLines.BottomLine) ? 5 : 0; }