public void Search_Horizontal(string word) { // Arrange List <XY> expectedPoints = new List <XY> { new XY(0, 5), new XY(1, 5), new XY(2, 5), new XY(3, 5), new XY(4, 5), new XY(5, 5) }; // Act WordSearch wordSearch = new WordSearch(GetMatrix()); List <XY> actualPoints = wordSearch.HorizontalSearch(word); XYComparer xYComparer = new XYComparer(); // Assert CollectionAssert.AreEqual(expectedPoints, actualPoints, xYComparer); }