public void ValidateInvalidLargeStraight() { var diceValues = _testDieFactory.CreateDieEnumerable(new[] { 3, 2, 4, 1, 6 }); StraightValidator straightValidator = new StraightValidator(); bool result = straightValidator.IsValid(5, diceValues); result.Should().BeFalse(); }
public void StraightValidator_ValidLargeStraightSet_ReturnsTrue() { var diceValues = _testDieFactory.CreateDieEnumerable(new[] { 3, 4, 2, 6, 5 }); StraightValidator straightValidator = new StraightValidator(); bool result = straightValidator.IsValid(5, diceValues); result.Should().BeTrue(); }
public void ValidateSmallStraight() { var diceValues = _testDieFactory.CreateDieEnumerable(new[]{ 1, 3, 2, 4, 6 }); StraightValidator straightValidator = new StraightValidator(); bool result = straightValidator.IsValid(4, diceValues); result.Should().BeTrue(); }
public void StraightValidator_InvalidSmallStraightSet_ReturnsFalse() { var diceValues = _testDieFactory.CreateDieEnumerable(new[] { 1, 3, 5, 2, 6 }); StraightValidator straightValidator = new StraightValidator(); bool result = straightValidator.IsValid(4, diceValues); result.Should().BeFalse(); }