public void ValidatorDetectesSuccessInDifferentPreambleLengths(int preambleLength, params long[] xmasCodeList)
        {
            // Arrange
            var  sut     = new XmasCodeValidator();
            long ignored = -1;

            // Act
            var result = sut.IsValid(preambleLength, xmasCodeList, out ignored);

            // Assert
            result.Should().BeTrue();
        }
        public void ValidatorDetectesFailureInDifferentPreambleLengths(long expectedStopNumber, int preambleLength, params long[] xmasCodeList)
        {
            // Arrange
            var  sut        = new XmasCodeValidator();
            long stopNumber = -1;

            // Act
            var result = sut.IsValid(preambleLength, xmasCodeList, out stopNumber);

            // Assert
            result.Should().BeFalse();
            stopNumber.Should().Be(expectedStopNumber);
        }