public void GetPresentationWhite()
 {
     var p = new FigurinePresentation();
     var pl = new Player(1);
     var o = new ChessPiece { Type = PieceTypes.Rook, Player = pl };
     Assert.AreEqual('♖', p.GetPresentation(o));
 }
 public void GetEmptyCell()
 {
     var p = new FigurinePresentation();
     var pl = new Player(2);
     var o = new ChessPiece { IsEmpty = true };
     Assert.AreEqual(null, p.GetPresentation(o));
 }
 public void GetPresentationException()
 {
     var p = new FigurinePresentation();
     var o = new Piece();
     p.GetPresentation(o);
 }
 public void GetPlayerWhite()
 {
     var p = new FigurinePresentation();
     Assert.AreEqual(1, p.GetPlayer('♔'));
 }
 public void GetPlayerBlack()
 {
     var p = new FigurinePresentation();
     Assert.AreEqual(2, p.GetPlayer('♜'));
 }
 public void GetPieceTypeWrongObjectException()
 {
     var p = new FigurinePresentation();
     p.GetPieceType(2);
 }
 public void GetPieceTypeException()
 {
     var p = new FigurinePresentation();
     p.GetPieceType('Z');
 }
 public void GetPieceType()
 {
     var p = new FigurinePresentation();
     Assert.AreEqual(PieceTypes.King, p.GetPieceType('♚'));
 }