コード例 #1
0
        public void SetUp()
        {
            var inputArray = new long[]
            {
                35, 20, 15, 25, 47, 40, 62, 55, 65, 95, 102, 117, 150, 182, 219, 219, 299, 369, 438, 807
            };

            _returnValue = XmasValidator.TryGetFirstInvalid(inputArray, 5, out _firstValue);
        }
コード例 #2
0
            public void SetUp()
            {
                var inputArray = new long[]
                {
                    35, 20, 15, 25, 47, 40, 62, 55, 65, 95, 102, 117, 150, 182, 127, 219, 299, 277, 309, 576
                };

                _returnValue = XmasValidator.TryGetContiguousSet(inputArray, 127, out _contiguousSet);
            }
コード例 #3
0
 public void Then_the_return_is_correct(int checkValue, IEnumerable <long> preAmble, bool expectedResult)
 {
     Assert.That(XmasValidator.Validate(checkValue, preAmble), Is.EqualTo(expectedResult));
 }