public void ExistsMiddleElement(string numbersLine, bool expectedExists) { var numbers = numbersLine.Split(' ').Select(int.Parse).ToArray(); Assert.AreEqual(expectedExists, Solution.ExistsMiddleElement(numbers)); }