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

            //Act
            bool checkHoriz = attackQueen.CanAttackHorizontal(attackQueen.GetY(), targetQueen.GetY());

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