public static void TestEnPassant(string fen, BoardExceptionType expectedException) { var enPassantValidator = new EnPassantPositionRule(); var board = FenReader.Translate(fen); var actualExceptionType = enPassantValidator.Validate(board); Assert.AreEqual(expectedException, actualExceptionType); }
public void SetUp() { //Debug.WriteLine("Setting up ep tests."); rule = new EnPassantPositionRule(); }