示例#1
0
        public void ThirdTry(int[] A, int sum, bool expected)
        {
            var solution = new Algorithms.Arrays.FindTheSum.FindTheSum();
            var actual   = solution.ThirdTry(A, sum);

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public static IEnumerable <object[]> Data()
        {
            var solution = new Algorithms.Arrays.FindTheSum.FindTheSum();

            foreach (object[] item in solution.Data())
            {
                yield return new object[] { item[0], item[1], true }
            }
            ;

            yield return(new object[] { new int[] { 10, 5 }, 0, false });

            yield return(new object[] { new int[] { 1, 9, 19, 5 }, 10, true });
        }
    }