public void GetPresentationPawn()
 {
     var p = new EnglishPresentation();
     var o = new ChessPiece { Type = PieceTypes.Pawn };
     Assert.AreEqual(null, p.GetPresentation(o));
 }
 public void GetPresentation()
 {
     var p = new EnglishPresentation();
     var o = new ChessPiece {Type = PieceTypes.Rook};
     Assert.AreEqual('R', p.GetPresentation(o));
 }
 public void GetPresentationException()
 {
     var p = new EnglishPresentation();
     var o = new Piece();
     p.GetPresentation(o);
 }
 public void GetPieceTypeWrongObjectException()
 {
     var p = new EnglishPresentation();
     Assert.AreEqual(PieceTypes.Pawn, p.GetPieceType(2));
 }
 public void GetPieceTypeString()
 {
     var p = new EnglishPresentation();
     Assert.AreEqual(PieceTypes.Bishop, p.GetPieceType("B"));
 }
 public void GetPieceTypePawn()
 {
     var p = new EnglishPresentation();
     Assert.AreEqual(PieceTypes.Pawn, p.GetPieceType(null));
 }
 public void GetPieceTypeLower()
 {
     var p = new EnglishPresentation();
     Assert.AreEqual(PieceTypes.King, p.GetPieceType('k'));
 }
 public void GetPieceTypeException()
 {
     var p = new EnglishPresentation();
     Assert.AreEqual(PieceTypes.Pawn, p.GetPieceType('Z'));
 }