public void SingleInvalidLine_ReturnsFalse(int index, string line) { WordHexagon hexagon = new WordHexagon(4); Assert.IsTrue(hexagon.ValidateHorizontalLines()); hexagon.Lines[index] = line; Assert.IsFalse(hexagon.ValidateHorizontalLines(), $"After setting {line} at index {index}, it should be invalid."); }
public void SingleInvalidLine_ReturnsFalse(int index, string word) { WordHexagon hexagon = new WordHexagon(4); Assert.IsTrue(hexagon.ValidateHorizontalLines()); hexagon.SetDiagonalLineAtIndex(index, word); Assert.IsFalse(hexagon.ValidateDiagonalLines(), $"After setting {word} at index {index}, it should be invalid."); }