Esempio n. 1
0
        public void Test3()
        {
            int start, length;
            int targetSum = 6;

            Assert.IsFalse(ConsecutiveSum.Solve(this.input, targetSum, out start, out length));
        }
Esempio n. 2
0
        public void Test2()
        {
            int start, length;
            int targetSum = 15;

            Assert.IsTrue(ConsecutiveSum.Solve(this.input, targetSum, out start, out length));
            Assert.IsTrue(this.Check(this.input, targetSum, start, length));
        }