Esempio n. 1
0
        public void CheckIfExistTests()
        {
            CheckIfNandItsDoubleExist obj = new CheckIfNandItsDoubleExist();

            var values = new int[] { 10, 2, 5, 3 };
            var x      = obj.CheckIfExist(values);//t

            values = new int[] { 0, 0 };
            x      = obj.CheckIfExist(values);//t
        }
Esempio n. 2
0
        public bool CheckIfExistSolution(int[] data)
        {
            var testClass = new CheckIfNandItsDoubleExist();

            return(testClass.Solution(data));
        }