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