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 }
public bool CheckIfExistSolution(int[] data) { var testClass = new CheckIfNandItsDoubleExist(); return(testClass.Solution(data)); }