コード例 #1
0
        public void CanAttackDiagonal_ReturnTrue_True()
        {
            //Arrange
            bool  canAttack   = true;
            Queen attackQueen = new Queen(4, 4);
            Queen targetQueen = new Queen(1, 7);

            //Act
            bool checkDiag = attackQueen.CanAttackDiagonal(attackQueen.GetX(), targetQueen.GetX(), attackQueen.GetY(), targetQueen.GetY());

            //Assert
            Assert.AreEqual(canAttack, checkDiag);
        }