Exemplo n.º 1
0
 public void CanAttack_Diagonally_true()
 {
     QueenAttack queen = new QueenAttack(4, 4);
       Assert.Equal(true, queen.CanAttack(1,1));
       Assert.Equal(true, queen.CanAttack(8,8));
       Assert.Equal(true, queen.CanAttack(1,7));
       Assert.Equal(true, queen.CanAttack(7,1));
 }
Exemplo n.º 2
0
 public void CanAttack_Vertically_true()
 {
     QueenAttack queen = new QueenAttack(8,2);
       Assert.Equal(true, queen.CanAttack(7,2));
 }
Exemplo n.º 3
0
 public void CanAttack_Horizontally_true()
 {
     QueenAttack queen = new QueenAttack(8,2);
       Assert.Equal(true, queen.CanAttack(8,3));
 }