public void MoveCodesParsed(string moveCode, int expectedFrom, int expectedTo, int promotionPiece) { var move = NotationHelper.ParseMoveCode(moveCode); Assert.AreEqual(expectedFrom, move.StartSquare); Assert.AreEqual(expectedTo, move.EndSquare); Assert.AreEqual(promotionPiece, move.PromotionPiece); }
public void InvalidMoveCodesParseThrows(string moveCode) { Assert.Throws <ArgumentException>(() => NotationHelper.ParseMoveCode(moveCode)); }