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