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)); }
public void CanAttack_Vertically_true() { QueenAttack queen = new QueenAttack(8,2); Assert.Equal(true, queen.CanAttack(7,2)); }
public void CanAttack_Horizontally_true() { QueenAttack queen = new QueenAttack(8,2); Assert.Equal(true, queen.CanAttack(8,3)); }